...
Vulnerabilities are frequently introduced while porting code. A buffer overflow vulnerability may result, for example, if an incorrectly defined integer constants constant is used to determine the size of a buffer. It is always best to write portable code, especially when there is no performance overhead for doing so.
...
| Wiki Markup |
|---|
\[[Dewhurst 02|AA. C References#Dewhurst 02]\] Gotcha #25, "#define Literals" \[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]] Section 6.4.4.1, "Integer constants" |
...