In the src/parser.c file read_cfg function causes Segmentation fault on wrong or unexpected cfg file format.
Command used:
darknet detector train /usr/share/yolo4-data/data/obj.data /usr/share/yolo4-data/cfg/yolov4-obj.cfg /usr/share/yolov4.conv.137 
Executed on the ubuntu:24.04 on the docker image/container.
As I assume, even with wrong cfg file format application must not crash.
cfg-file contents: