Skip to content

Commit

Permalink
uname
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 1, 2023
1 parent f5ffd12 commit a085287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("dlerror", unknown ~attrs:[ThreadUnsafe] []); (* TODO: Why thread-unsafe? https://linux.die.net/man/3/dlopen *)
("dlsym", unknown [drop "handle" [r]; drop "symbol" [r]]);
("dlclose", unknown [drop "handle" [r]]);
("inet_addr", unknown [drop "cp" [r]])
("inet_addr", unknown [drop "cp" [r]]);
("uname", unknown [drop "buf" [w]]);
]

(** Pthread functions. *)
Expand Down Expand Up @@ -1089,7 +1090,6 @@ let invalidate_actions = [
"__ctype_b_loc", readsAll;(*safe*)
"__errno", readsAll;(*safe*)
"__errno_location", readsAll;(*safe*)
"uname", writesAll;(*unsafe*)
"getopt_long", writesAllButFirst 2 readsAll;(*drop 2*)
"__strdup", readsAll;(*safe*)
"strtoul__extinline", readsAll;(*safe*)
Expand Down

0 comments on commit a085287

Please sign in to comment.