[PATCH] libosmocore osmo_revbytebits_buf stack trashing

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Thu Jan 3 08:36:57 UTC 2013


Hi,

> 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.

nice catch. Applied.

Cheers,

    Sylvain




More information about the OpenBSC mailing list