Skip to content

Commit

Permalink
getopt_long
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 1, 2023
1 parent a085287 commit 9fb68d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("fileno", unknown [drop "stream" [r_deep; w_deep]]);
("fdopen", unknown [drop "fd" []; drop "mode" [r]]);
("getopt", unknown ~attrs:[ThreadUnsafe] [drop "argc" []; drop "argv" [r_deep]; drop "optstring" [r]]);
("getopt_long", unknown ~attrs:[ThreadUnsafe] [drop "argc" []; drop "argv" [r_deep]; drop "optstring" [r]; drop "longopts" [r]; drop "longindex" [w]]);
("iconv_open", unknown [drop "tocode" [r]; drop "fromcode" [r]]);
("iconv", unknown [drop "cd" [r]; drop "inbuf" [r]; drop "inbytesleft" [r;w]; drop "outbuf" [w]; drop "outbytesleft" [r;w]]);
("iconv_close", unknown [drop "cd" [f]]);
Expand Down Expand Up @@ -1090,7 +1091,6 @@ let invalidate_actions = [
"__ctype_b_loc", readsAll;(*safe*)
"__errno", readsAll;(*safe*)
"__errno_location", readsAll;(*safe*)
"getopt_long", writesAllButFirst 2 readsAll;(*drop 2*)
"__strdup", readsAll;(*safe*)
"strtoul__extinline", readsAll;(*safe*)
"readdir_r", writesAll;(*unsafe*)
Expand Down

0 comments on commit 9fb68d4

Please sign in to comment.