Skip to content

Commit

Permalink
htonl and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 1, 2023
1 parent 587b39f commit d9418ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("posix_fadvise", unknown [drop "fd" []; drop "offset" []; drop "len" []; drop "advice" []]);
("getppid", unknown []);
("lockf", unknown [drop "fd" []; drop "cmd" []; drop "len" []]);
("htonl", unknown [drop "hostlong" []]);
("htons", unknown [drop "hostshort" []]);
("ntohl", unknown [drop "netlong" []]);
("ntohs", unknown [drop "netshort" []]);
]

(** Pthread functions. *)
Expand Down Expand Up @@ -1151,9 +1155,6 @@ let invalidate_actions = [
"sem_post", readsAll; (*safe*)
"PL_NewHashTable", readsAll; (*safe*)
"assert_failed", readsAll; (*safe*)
"htonl", readsAll; (*safe*)
"htons", readsAll; (*safe*)
"ntohl", readsAll; (*safe*)
"munmap", readsAll;(*safe*)
"mmap", readsAll;(*safe*)
"clock", readsAll;
Expand Down

0 comments on commit d9418ce

Please sign in to comment.