Skip to content

Commit 1f09229

Browse files
MayureshV1Copilot
andauthored
Update onnxruntime/core/providers/openvino/backend_utils.cc
Co-authored-by: Copilot <[email protected]>
1 parent 838affe commit 1f09229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/providers/openvino/backend_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ bool IsModelStreamXML(std::istream& model_stream) {
413413
// Choose 32 bytes to hold content of:
414414
// '<?xml version-"1.0"?> <net '
415415
const std::streamsize header_check_len = 32;
416-
ORT_ENFORCE(total_size > header_check_len);
416+
ORT_ENFORCE(total_size >= header_check_len);
417417

418418
// read 32 bytes into header
419419
std::string header(header_check_len, '\0');

0 commit comments

Comments
 (0)