@@ -90,6 +90,7 @@ let api_map =
9090 |> ApiMap. add " memmove"
9191 { arg_typs = [ dst; arr_src; Size ]; ret_typ = DstArg }
9292 |> ApiMap. add " strcpy" { arg_typs = [ dst; arr_src ]; ret_typ = DstArg }
93+ |> ApiMap. add " g_strdup" { arg_typs = [ arr_src ]; ret_typ = AllocDst }
9394 |> ApiMap. add " strncpy"
9495 { arg_typs = [ dst; arr_src; Size ]; ret_typ = DstArg }
9596 |> ApiMap. add " strxfrm"
@@ -239,6 +240,7 @@ let api_map =
239240 |> ApiMap. add " pclose" { arg_typs = [ Skip ]; ret_typ = int_v }
240241 |> ApiMap. add " _IO_getc" { arg_typs = [ Skip ]; ret_typ = tainted_v }
241242 |> ApiMap. add " getchar" { arg_typs = [] ; ret_typ = tainted_v }
243+ |> ApiMap. add " getc" { arg_typs = [ Skip ]; ret_typ = tainted_v }
242244 |> ApiMap. add " read" { arg_typs = [ Skip ; buf; Size ]; ret_typ = SizeArg }
243245 |> ApiMap. add " fread"
244246 { arg_typs = [ buf; Skip ; Size ; Skip ]; ret_typ = SizeArg }
@@ -261,6 +263,7 @@ let api_map =
261263 |> ApiMap. add " getenv" { arg_typs = [ Skip ]; ret_typ = tainted_arr }
262264 (* etc *)
263265 |> ApiMap. add " scanf" { arg_typs = [ Skip ; buf_va ]; ret_typ = int_v }
266+ |> ApiMap. add " fscanf" { arg_typs = [ Skip ; Skip ; buf_va ]; ret_typ = int_v }
264267 |> ApiMap. add " sscanf"
265268 { arg_typs = [ arr_src; Skip ; dst_va ]; ret_typ = int_v }
266269 |> ApiMap. add " fgets" { arg_typs = [ buf; Size ; Skip ]; ret_typ = BufArg }
@@ -303,3 +306,7 @@ let api_map =
303306 (* libssh *)
304307 |> ApiMap. add " _ssh_buffer_unpack"
305308 { arg_typs = [ arr_src; Skip ; Skip ; dst_va ]; ret_typ = int_v }
309+ |> ApiMap. add " g_get_num_processors" { arg_typs = [] ; ret_typ = int_v }
310+ (* patron experiment *)
311+ |> ApiMap. add " TIFFGetField"
312+ { arg_typs = [ Skip ; Skip ; buf_va ]; ret_typ = int_v }
0 commit comments