Skip to content

Commit

Permalink
Fixed test 06 for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanschmidt committed Sep 8, 2023
1 parent d0acb0f commit e4d7e2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/regression/73-strings/06-juliet.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ void CWE665_Improper_Initialization__char_ncat_11_bad()
sourceLen = strlen(source);
__goblint_check(sourceLen <= 99);
/* POTENTIAL FLAW: If data is not initialized properly, strncat() may not function correctly */
strncat(data, source, sourceLen); // NOWARN because sourceLen is not exactly known => array domain not consulted
#ifdef __APPLE__
;
#else
strncat(data, source, sourceLen); // NOWARN because sourceLen is not exactly known => array domain not consulted
#endif
}
}

0 comments on commit e4d7e2b

Please sign in to comment.