projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
128d9e2
)
osmo_hexdump: Fix segfault when input is too long.
author
Holger Hans Peter Freyther
<zecke@selfish.org>
Fri, 15 Jul 2011 14:07:23 +0000
(16:07 +0200)
committer
Holger Hans Peter Freyther
<zecke@selfish.org>
Fri, 15 Jul 2011 14:07:23 +0000
(16:07 +0200)
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, ...);
No differences found