Skip to content

Commit

Permalink
Correct strcat; add strncat.
Browse files Browse the repository at this point in the history
  • Loading branch information
vesalvojdani committed May 5, 2022
1 parent 59f7343 commit 7e5ab0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ let invalidate_actions = [
"strlen", readsAll;(*safe*)
"strncmp", readsAll;(*safe*)
"strncpy", writes [1];(*keep [1]*)
"strncat", writes [1];(*keep [1]*)
"strstr", readsAll;(*safe*)
"strdup", readsAll;(*safe*)
"toupper", readsAll;(*safe*)
Expand Down Expand Up @@ -341,7 +342,7 @@ let invalidate_actions = [
"strcpy", writes [1];(*keep [1]*)
"__builtin___strcpy", writes [1];(*keep [1]*)
"__builtin___strcpy_chk", writes [1];(*keep [1]*)
"strcat", writes [2];(*keep [2]*)
"strcat", writes [1];(*keep [1]*)
"getpgrp", readsAll;(*safe*)
"umount2", readsAll;(*safe*)
"memchr", readsAll;(*safe*)
Expand Down

0 comments on commit 7e5ab0a

Please sign in to comment.