Reviewed By: jeremydubreil Differential Revision: D2692136 fb-gh-sync-id: 12de038master
parent
a6543cd665
commit
dcdebbd811
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2013 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
package com.facebook.infer.models;
|
||||
|
||||
public class InferTaint {
|
||||
|
||||
public static Object inferSecretSource() {
|
||||
Object o = InferUndefined.object_undefined();
|
||||
InferBuiltins.assume_allocated(o);
|
||||
return o;
|
||||
}
|
||||
|
||||
public static void inferSensitiveSink(Object iMightBeTainted) {
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
(*
|
||||
* Copyright (c) 2013 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*)
|
||||
|
||||
module L = Logging
|
||||
|
||||
open Utils
|
||||
|
||||
(** returns true if [callee_pname] returns a tainted value *)
|
||||
let returns_secret callee_pname = false
|
||||
|
||||
(** returns list of zero-indexed argument numbers of [callee_pname] that may be tainted *)
|
||||
let accepts_sensitive_params callee_pname = []
|
@ -0,0 +1,14 @@
|
||||
(*
|
||||
* Copyright (c) 2013 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*)
|
||||
|
||||
(** returns true if [callee_pname] returns a tainted value *)
|
||||
val returns_secret : Procname.t -> bool
|
||||
|
||||
(** returns list of zero-indexed argument numbers of [callee_pname] that may be tainted *)
|
||||
val accepts_sensitive_params : Procname.t -> int list
|
Loading…
Reference in new issue