Skip to content

Commit

Permalink
Coverity - Division or modulo by zero - 6391034
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir91 committed Feb 7, 2024
1 parent 252ebc4 commit 2e0ba73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc/synthetic-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ namespace librealsense
width = vf->get_width();
stride = width * bpp / 8;
}
else if (width == 0)
else if (width == 0 && bpp != 0)
{
width = stride * 8 / bpp;
}
Expand Down

0 comments on commit 2e0ba73

Please sign in to comment.