Skip to content

src/parser.c read_cfg function causes Segmentation fault on wrong (?) cfg file format #8933

@yuriysydor1991

Description

@yuriysydor1991

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.

Image Image Image

cfg-file contents:

classes = 1
filters = 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions