[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: false asumption or security flaw?
Some machines have the first 256 bytes open to read but not write (no
segmentation fault either).
Others will segfault trying to even read the first 256 bytes.
I forget which architectures do this but I ran into the problem a few years
ago when porting code from one platform to another.
________________________________________
Michael D. Black Principal Engineer
mblack@csihq.com 321-676-2923,x203
http://www.csihq.com Computer Science Innovations
http://www.csihq.com/~mike My home page
FAX 321-676-2355
----- Original Message -----
From: "johan '97" <joe197@puspa.cs.ui.ac.id>
To: <kernel-audit@nl.linux.org>
Sent: Thursday, August 24, 2000 3:05 AM
Subject: false asumption or security flaw?
hi,
could anyone tell me why does this piece of code does not dump?
<start>
#include <stdio.h>
#include <stdlib.h>
main()
{
int *x=(int*)malloc(sizeof(int));
*x=8;
int &a=(*x);
printf("\na dan x : %d %d", a, *x);
a = 9;
printf("\na dan x : %d %d", a, *x);
free(x);
a=5;
return 0;
}
<end>
could it be a security flaw in the kernel?
thanx
johan
surrendered, i have
Kernel-audit: discussion list for security and the linux kernel
Archive: http://mail.nl.linux.org/kernel-audit/
Kernel-audit: discussion list for security and the linux kernel
Archive: http://mail.nl.linux.org/kernel-audit/