Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit 64b907c

Browse files
authored
Merge pull request #1215 from smackers/seed-more-aws-bugs
Seed more aws bugs
2 parents 25d9487 + b3e52aa commit 64b907c

13 files changed

+53374
-1
lines changed

c/aws-c-common/aws_array_eq_c_str_harness-1.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7891,7 +7891,7 @@ _Bool
78917891
const uint8_t *array_bytes = array;
78927892
const uint8_t *str_bytes = (const uint8_t *)c_str;
78937893

7894-
for (size_t i = 0; i < array_len - 1; ++i) {
7894+
for (size_t i = 0; i < array_len - 1; ++i) { // introduced off-by-one bug
78957895
uint8_t s = str_bytes[i];
78967896
if (s == '\0') {
78977897
return

0 commit comments

Comments
 (0)