Package: systemd 
Version: 247 

Hi. 

Error message: Code should not be reached 'Unhandled option' at 
src/fsckd/fsckd.c:643, function parse_argv(). Aborting. Aborted 

To reproduce this bug we just need to run command "systemd-fsckd -v". In normal 
way it must finish with "invalid option" error. 
Technical description: Program systemd-fsckd call function parse_argv(file 
fsckd.c:610). In « while ((c = getopt_long(argc, argv, "h v ", options, NULL)) 
>= 0)» (file fsckd . c : 628 ) when we send "-v" 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: Replace "hv" with "h" in «while ((c = getopt_long(argc, 
argv, "hv", options, NULL)) >= 0)» (file fsckd . c : 628 ) 


Regards, 

Shahov Erik 

Reply via email to