X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/7bf960677344d11a101697c76672a0be4b3759f2..59a4360f02565d806d4bbd486cfdb5984b726db4:/test/mystrncat.expect diff --git a/test/mystrncat.expect b/test/mystrncat.expect index 4bb212d..66dc82c 100644 --- a/test/mystrncat.expect +++ b/test/mystrncat.expect @@ -4,7 +4,9 @@ mystrncat.c:12:13: Passed storage buffer not completely defined (*buffer is undefined): mystrncat (buffer, ...) mystrncat.c:13:13: Passed storage b not completely defined (*b is undefined): mystrncat (b, ...) + mystrncat.c:10:3: Storage *b allocated mystrncat.c:12:3: Possible out-of-bounds store: + mystrncat(buffer, str, sizeof((buffer)) - 1) Unable to resolve constraint: requires maxRead(buffer @ mystrncat.c:12:13) <= 0 needed to satisfy precondition: @@ -13,6 +15,7 @@ mystrncat.c:12:3: Possible out-of-bounds store: derived from mystrncat precondition: requires maxSet() >= maxRead() + mystrncat.c:13:3: Possible out-of-bounds store: + mystrncat(b, str, sizeof((buffer)) - 1) Unable to resolve constraint: requires maxRead(malloc(256) @ mystrncat.c:10:7) <= 0 needed to satisfy precondition: @@ -21,4 +24,4 @@ mystrncat.c:13:3: Possible out-of-bounds store: derived from mystrncat precondition: requires maxSet() >= maxRead() + -Finished LCLint checking --- 4 code errors found, as expected +Finished checking --- 4 code warnings, as expected