clipka <ano### [at] anonymous org> wrote:
> Okay, let's do it a bit more specific:
> void fubar(int idx)
> {
> char c[1024];
> if (idx < 1024)
> fnord(c[idx]);
> else
> FAIL_SAFE();
> }
> void main()
> {
> fubar(INT_MAX+1);
> }
> No out-of-bounds access? Look at the code again.
But in the original post it was suggested that an array size of INT_MAX+1
in the image file could cause this. Here the array size is just 1024 (which
in this particular contest would have ostensibly been read from the image
file.)
Unless there's an image file where there are actual index values specified.
--
- Warp
Post a reply to this message
|