]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: limit read buffer size
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 15 Aug 2023 19:25:44 +0000 (21:25 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 15 Aug 2023 19:25:44 +0000 (21:25 +0200)
commit65b1f3deed1e737fd4f3c80815200c38f2409fdc
tree98323eb966aeace7e75371c7ba5a28dd29c35895
parent3119a8060102ed7dd04d4a782932494c386f72a6
libblkid: limit read buffer size

Many probers read data from disk bounded by some field from the probed
disk itself.
The probers should validate the read length before using.
Add a fallback that kicks in when the proper does not check the length
epxlicitly.

See #2427
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/probe.c