Skip to content

dnn: buffer overflow in Net::Impl::dump() #19034

@berak

Description

@berak
System information (version)
  • OpenCV => 4.5.1-pre
  • Operating System / Platform => Windows 64 Bit
  • Compiler => mingw64
Detailed description

only 8 colors here:

string colors[] = {"#ffffb3", "#fccde5", "#8dd3c7", "#bebada", "#80b1d3", "#fdb462", "#ff4848", "#b35151"};

but 9 colorId's used here:

case DNN_TARGET_HDDL: out << "HDDL"; colorId = 8; break;

it's only in the master branch, 3.4 has it correct (6 colors / colorId's)

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions