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

Fixs several problems found by static analysis

This commit is contained in:
Maksim Shabunin
2020-03-16 15:49:51 +03:00
parent 2a52e44bc6
commit 7e7bb3027c
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -704,6 +704,7 @@ public:
const char* json_signature = "{";
const char* xml_signature = "<?xml";
char* buf = this->gets(16);
CV_Assert(buf);
char* bufPtr = cv_skip_BOM(buf);
size_t bufOffset = bufPtr - buf;