[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
buffer overflows at various snprintf()
From: |
Enrico Scholz |
Subject: |
buffer overflows at various snprintf() |
Date: |
Tue, 01 Feb 2005 23:34:44 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Corporate Culture, linux) |
Hello,
compiling 2.1.13 gives some serious compiler warnings:
| cfagent.c:1100: warning: call to __builtin___snprintf_chk will always
overflow destination buffer
| do.c:637: warning: call to __builtin___snprintf_chk will always overflow
destination buffer
| do.c:3285: warning: call to __builtin___snprintf_chk will always overflow
destination buffer
| crypto.c:297: warning: call to __builtin___snprintf_chk will always overflow
destination buffer
| crypto.c:52: warning: call to __builtin___snprintf_chk will always overflow
destination buffer
| cfenvd.c:283: warning: call to __builtin___snprintf_chk will always overflow
destination buffer
| cfenvgraph.c:1021: warning: call to __builtin___snprintf_chk will always
overflow destination buffer
This is caused by statements like
| char buf[A];
| snprintf(buf, B, ...);
where A<B (probably just typos).
CVS snapshot + SVN tree are unavailable currently so I can not check if
this was fixed already.
Enrico
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- buffer overflows at various snprintf(),
Enrico Scholz <=