Skip to content

Commit 59aa840

Browse files
committed
Use the more typical trailing NUL approach.
This is an attempt to fix some out-of-bounds issues.
1 parent a9bacf4 commit 59aa840

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

models/[email protected]

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,5 @@ unsigned char ietf_yang_revisions_2025_01_28_yang[] = {
453453
0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
454454
0x6e, 0x20, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20,
455455
0x6f, 0x6e, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x3b,
456-
0x0a, 0x20, 0x20, 0x7d, 0x0a, 0x7d, 0x0a
456+
0x0a, 0x20, 0x20, 0x7d, 0x0a, 0x7d, 0x0a, 0x00
457457
};
458-
unsigned int ietf_yang_revisions_2025_01_28_yang_len = 5455;

models/[email protected]

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,5 @@ unsigned char ietf_yang_semver_2025_09_29_yang[] = {
414414
0x52, 0x46, 0x43, 0x20, 0x58, 0x58, 0x58, 0x58, 0x3a, 0x20, 0x59, 0x41,
415415
0x4e, 0x47, 0x20, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x20,
416416
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x22,
417-
0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x0a, 0x7d, 0x0a
417+
0x3b, 0x0a, 0x20, 0x20, 0x7d, 0x0a, 0x7d, 0x0a, 0x00
418418
};
419-
unsigned int ietf_yang_semver_2025_09_29_yang_len = 4988;

0 commit comments

Comments
 (0)