Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mnay
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
mnay
10y ago
It is embarrassing for glibc not to check for overflow in calloc implementation prior to 2002. It is not only a security flaw but also violation of C Standards (even the first version ratified in 1989, usually referred to as C89). The sta
2.
▲
by
mnay
10y ago
The code in question violates the newer C standards (C99, C11). For instance, it doesn't even compile using "gcc -std=c99 -pedantic-errors". In the older C standard (C89), the code has undefined behaviour because implicit dec