grub/grub-core/normal
Peter Jones f0f97576e0 normal/completion: Fix possible NULL pointer dereference
Coverity Scan reports that the grub_strrchr() function can return NULL if
the character is not found. Check if that's the case for dirfile pointer.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-03-10 21:40:23 +01:00
..
auth.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
autofs.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
charset.c charset: Trim away RLM and LRM. 2017-01-31 19:29:31 +01:00
cmdline.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
color.c Replace explicit sizeof divisions by ARRAY_SIZE. 2015-01-21 17:37:31 +01:00
completion.c normal/completion: Fix possible NULL pointer dereference 2020-03-10 21:40:23 +01:00
context.c normal: fix memory leak 2015-06-20 23:38:19 +03:00
crypto.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
dyncmd.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
main.c normal/main: Search for specific config files for netboot 2020-02-18 15:12:06 +01:00
menu.c misc: Make grub_strtol() "end" pointers have safer const qualifiers 2020-02-28 12:41:29 +01:00
menu_entry.c core: use GRUB_TERM_ definitions when handling term characters 2017-08-07 19:28:22 +02:00
menu_text.c grub_menu_init_page: Avoid returning 0 geometry to avoid divisions by 0. 2015-01-21 17:42:15 +01:00
misc.c Change fs functions to add fs_ prefix 2019-04-09 10:03:29 +10:00
term.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00