Quantcast
Channel: All System Administration posts
Viewing all articles
Browse latest Browse all 1179

Re: C Question: char messagebuf[8199999]

$
0
0

>I increase the value of messagebuf past 8MB, I get a segmentation fault when I execute it regardless of the size of the input file.

 

Based on Steven's comments about stack size, if the stack grows towards 0, then the first byte you put into the array will be beyond the top of the stack.


Viewing all articles
Browse latest Browse all 1179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>