Avoiding 'Buffer Overrun' C6386 warning
Posted
by bdhar
on Stack Overflow
See other posts from Stack Overflow
or by bdhar
Published on 2010-06-11T10:43:15Z
Indexed on
2010/06/11
10:52 UTC
Read the original article
Hit count: 259
In my code, I am using an array xyz
of 10 objects. When I am trying to access an element of the array using an unsigned int index like this: xyz[level]
, I get 'Buffer overrun' warning. Logically, I am pretty sure that level won't exceed 10. How to avoid this warning?
© Stack Overflow or respective owner