]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: assert if self_pte() returns NULL
authorSami Kerola <kerolasa@iki.fi>
Wed, 22 May 2019 18:45:54 +0000 (19:45 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 22 May 2019 18:45:54 +0000 (19:45 +0100)
commit620851e0cc297c2caadf9d4480028e181d8963ee
tree88a22688ac1c692b84140f284898acd6f079b0db
parent04d0701ea8d031c1392aaa77b0faf03f99d1c7a0
libfdisk: assert if self_pte() returns NULL

The self_pte() can return NULL if partitions array is not large enough,
but that should also be impossible and definitely a bug.

libfdisk/src/dos.c:984:8: warning: potential null pointer dereference [-Wnull-dereference]
libfdisk/src/dos.c:1031:8: warning: potential null pointer dereference [-Wnull-dereference]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
libfdisk/src/dos.c