diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2013-01-03 09:36:16 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2013-01-03 09:37:16 +0100 |
commit | 01e06046379350aa9090ef785a9b0fe2ca03ce23 (patch) | |
tree | 3f00aff06e671a0307acbe1c1d29a7420e54561f /src/select.c | |
parent | 13bb169d71a7eff694b8a2ba24497ee08c73a090 (diff) |
core/bits: Prevent osmo_revbytebits_buf stack trashing
The second loop in osmo_revbytebits_buf() in src/bits.c grabs
4 bytes each iteration, which can easily go past the supplied
input in some cases.
Compiled with -fstack-protector , I get a "stack smashing detected"
in the bits test.
From: Nils O. SelÄsdal <noselasd@fiane.dyndns.org>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/select.c')
0 files changed, 0 insertions, 0 deletions