source/Transfer.h (84 lines of code) (raw):
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <InstructionAnalyzer.h>
#include <mariana-trench/AnalysisEnvironment.h>
#include <mariana-trench/MethodContext.h>
namespace marianatrench {
class Transfer final : public InstructionAnalyzerBase<
Transfer,
AnalysisEnvironment,
MethodContext*> {
public:
static bool analyze_default(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_check_cast(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_iget(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_sget(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_invoke(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_iput(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_sput(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_load_param(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_move(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_move_result(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_aget(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_aput(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_new_array(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_filled_new_array(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_unop(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_binop(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_binop_lit(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
static bool analyze_return(
MethodContext* context,
const IRInstruction* instruction,
AnalysisEnvironment* taint);
};
} // namespace marianatrench