hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

alfredhitchcock_007
You might seem that this is problem is silly. But i have serious doubts on this
I have created a small basic program in c. Its just a declaring a character array of one. When i see the assembly code it allocated memory of 0x8. Now i increase the character array to two bytes, the memory that is allocated is 0x8. Now again i increase the character to 3 bytes, the memory that is allocated is 0x18. Now here the real fun comes, when declaring character array of 4 bytes the memory allocated is 0x8. Can anybody tell me how is this possible.

Following is the text file attached with this
nihoho
As far as i can tell, it just boils down to how gcc translates c into opcodes. Heuristics are involved, and also gcc by default tries to optimize your code, so these may be some good points to start researching. Try compiling with as much 'features' off as you can.. See what that gets you..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.