Skip to content

Fixed segfault when reading Caffe model#24316

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
alexlyulkov:al/fix-caffe-read-segfault
Sep 25, 2023
Merged

Fixed segfault when reading Caffe model#24316
asmorkalov merged 1 commit intoopencv:4.xfrom
alexlyulkov:al/fix-caffe-read-segfault

Conversation

@alexlyulkov
Copy link
Copy Markdown
Contributor

Added assert to avoid segfault when reading a Caffe model.
It is not clear why OpenCV expects 2 values, but the model contains only one.
The model file is from this repository https://github.com/TimoSaemann/ENet

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asmorkalov asmorkalov merged commit 9942757 into opencv:4.x Sep 25, 2023
@asmorkalov asmorkalov added this to the 4.9.0 milestone Sep 27, 2023
@asmorkalov asmorkalov mentioned this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants