1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #28446 from Erellu:4.x

Fix UB in cv::error when breakOnError set to true
This commit is contained in:
Alexander Smorkalov
2026-01-23 11:29:33 +03:00
committed by GitHub
+1 -2
View File
@@ -1282,8 +1282,7 @@ void error( const Exception& exc )
if(breakOnError)
{
static volatile int* p = 0;
*p = 0;
std::terminate();
}
throw exc;