diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-15 16:07:23 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-15 16:07:23 +0200 |
commit | 128d9e23436584ea0d52c281b8fecb3b10f7953a (patch) | |
tree | 15b6dc936c08a1e3e5156ab9b9036f74e22906da /include/osmocom | |
parent | 96ba20cb44e602abb292b53c9e4f92aa59998df1 (diff) |
osmo_hexdump: Fix segfault when input is too long.
In snprinftf the size is a size_t (unsigned) in case we want
to write more than we have available, len_remain will be < 0.
This was spotted while removing hexdump from simtrace and comparing
it to our implementation.
int snprintf(char *str, size_t size, const char *format, ...);
Diffstat (limited to 'include/osmocom')
0 files changed, 0 insertions, 0 deletions