Bug#1008989: systemd- hwdb unexpected abort
Эрик Шахов
jeshahov at astralinux.ru
Tue Apr 5 16:20:26 BST 2022
Package: systemd
Version: 247
Hi.
Error message: Code should not be reached 'Unknown option' at src/hwdb/hwdb.c:102, function parse_argv(). Aborting. Aborted
To reproduce this bug we just need to run command "systemd-hwdb -ust"/"systemd-hwdb -u". In normal way it must finish with "invalid option" error.
Technical description: Program systemd-hwdb call function parse_argv(file hwdb.c:57). In « while ((c = getopt_long (argc, argv, " ust:r:h " , options, NULL )) >= 0 ) » (file hwdb.c:77) when we send "-u" or anything starting at "-u" the program will received Aborting
System information: Linux debian 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07 ) x86_64 GNU/Linux
libc-2.31.so
CWE identifier for this bug: CWE- 617 : Reachable Assertion
Way to fix this bug: Delete "ust" from « while ((c = getopt_long (argc, argv, " ust:r:h " , options, NULL )) >= 0 )» (file hwdb.c:77)
Regards,
Shahov Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220405/88a703c9/attachment.htm>
More information about the Pkg-systemd-maintainers
mailing list