]> git.puffer.fish Git - mirror/frr.git/commit
lib/printf: disable `%n` specifier 7994/head
authorDavid Lamparter <equinox@diac24.net>
Mon, 1 Feb 2021 16:50:01 +0000 (17:50 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 1 Feb 2021 17:33:18 +0000 (18:33 +0100)
commit738cca0ab4b900e2ecdb1ab28bc431fca014e6b0
treed831f56a74cfeac07a10b649cbfef149e3e6af82
parent6968b038ebb0beeda99b7ed70f3f1c35383f1ee3
lib/printf: disable `%n` specifier

We don't use `%n` anywhere, so the only purpose it serves is enabling
exploits.

(I thought about this initially when adding printfrr, but I wasn't sure
we don't use `%n` anywhere, and thought I'll check later, and then just
forgot it...)

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/printf/printf-pos.c
lib/printf/vfprintf.c