Skip to content

Commit

Permalink
so far
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakarimipour committed Aug 1, 2024
1 parent 5a4beeb commit 8987b66
Show file tree
Hide file tree
Showing 142 changed files with 317 additions and 334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import edu.ucr.cs.riple.taint.ucrtainting.serialization.XMLUtil;
import edu.xxx.cs.yyyyy.taint.tainttyper.serialization.XMLUtil;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import java.util.Objects;
import javax.annotation.Nonnull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

public class Log {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import org.checkerframework.common.accumulation.AccumulationAnalysis;
import org.checkerframework.common.basetype.BaseTypeChecker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import static edu.ucr.cs.riple.taint.ucrtainting.Log.print;
import static edu.xxx.cs.yyyyy.taint.tainttyper.Log.print;

import com.sun.source.tree.*;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
import edu.ucr.cs.riple.taint.ucrtainting.handlers.CompositHandler;
import edu.ucr.cs.riple.taint.ucrtainting.handlers.Handler;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RPolyTainted;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RPossiblyValidated;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RTainted;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RUntainted;
import edu.ucr.cs.riple.taint.ucrtainting.serialization.TypeIndex;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.handlers.CompositHandler;
import edu.xxx.cs.yyyyy.taint.tainttyper.handlers.Handler;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RPolyTainted;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RPossiblyValidated;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RTainted;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RUntainted;
import edu.xxx.cs.yyyyy.taint.tainttyper.serialization.TypeIndex;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.lang.annotation.Annotation;
import java.nio.file.Path;
import java.util.*;
Expand Down Expand Up @@ -490,12 +490,11 @@ public boolean hasPolyTaintedAnnotation(Type type) {
}

/**
* Checks if the given annotated type mirror has the {@link
* edu.ucr.cs.riple.taint.ucrtainting.qual.RPolyTainted} annotation.
* Checks if the given annotated type mirror has the {@link RPolyTainted} annotation.
*
* @param type The given annotated type mirror
* @return True if the given annotated type mirror has the {@link
* edu.ucr.cs.riple.taint.ucrtainting.qual.RPolyTainted} annotation, false otherwise.
* @return True if the given annotated type mirror has the {@link RPolyTainted} annotation, false
* otherwise.
*/
public boolean hasPolyTaintedAnnotation(AnnotatedTypeMirror type) {
type = getTargetType(type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import static com.sun.source.tree.Tree.Kind.NULL_LITERAL;

Expand All @@ -32,8 +32,8 @@
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.tree.JCTree;
import edu.ucr.cs.riple.taint.ucrtainting.handlers.UnannotatedCodeHandler;
import edu.ucr.cs.riple.taint.ucrtainting.serialization.SerializationService;
import edu.xxx.cs.yyyyy.taint.tainttyper.handlers.UnannotatedCodeHandler;
import edu.xxx.cs.yyyyy.taint.tainttyper.serialization.SerializationService;
import org.checkerframework.checker.compilermsgs.qual.CompilerMessageKey;
import org.checkerframework.common.accumulation.AccumulationChecker;
import org.checkerframework.framework.qual.StubFiles;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import com.sun.source.tree.MethodInvocationTree;
import com.sun.tools.javac.code.Symbol;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RThis;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RThis;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.util.Collections;
import java.util.List;
import javax.lang.model.type.TypeKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import com.sun.source.tree.*;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.tree.JCTree;
import edu.ucr.cs.riple.taint.ucrtainting.handlers.Handler;
import edu.ucr.cs.riple.taint.ucrtainting.qual.RTainted;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.handlers.Handler;
import edu.xxx.cs.yyyyy.taint.tainttyper.qual.RTainted;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.util.List;
import javax.lang.model.element.ElementKind;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import org.checkerframework.framework.type.AnnotatedTypeFactory;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting;
package edu.xxx.cs.yyyyy.taint.tainttyper;

import com.sun.source.tree.Tree;
import com.sun.tools.javac.code.Symbol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.LambdaExpressionTree;
import com.sun.source.tree.MemberSelectTree;
import com.sun.source.tree.MethodInvocationTree;
import com.sun.source.tree.NewClassTree;
import com.sun.source.tree.VariableTree;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.MethodInvocationTree;
import com.sun.tools.javac.code.Symbol;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
import org.checkerframework.javacutil.TreeUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.MethodInvocationTree;
Expand All @@ -32,9 +32,9 @@
import com.sun.tools.javac.code.Types;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.util.Context;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.ucr.cs.riple.taint.ucrtainting.util.TypeUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.TypeUtils;
import javax.annotation.Nullable;
import javax.lang.model.type.ArrayType;
import javax.lang.model.type.TypeMirror;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.google.common.collect.ImmutableSet;
import com.sun.source.tree.LambdaExpressionTree;
Expand All @@ -31,7 +31,7 @@
import com.sun.source.tree.NewClassTree;
import com.sun.source.tree.VariableTree;
import com.sun.tools.javac.util.Context;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.LambdaExpressionTree;
import com.sun.source.tree.MemberSelectTree;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.LambdaExpressionTree;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Types;
import com.sun.tools.javac.util.Context;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.util.HashSet;
import java.util.Set;
import javax.lang.model.element.Element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.MethodInvocationTree;
import com.sun.tools.javac.code.Symbol;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
import org.checkerframework.javacutil.TreeUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.Tree;
import com.sun.source.tree.VariableTree;
import com.sun.tools.javac.code.Symbol;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.handlers;
package edu.xxx.cs.yyyyy.taint.tainttyper.handlers;

import com.google.common.collect.ImmutableSet;
import com.sun.source.tree.ExpressionTree;
Expand All @@ -31,10 +31,10 @@
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.tree.JCTree;
import edu.ucr.cs.riple.taint.ucrtainting.TaintTyperAnnotatedTypeFactory;
import edu.ucr.cs.riple.taint.ucrtainting.serialization.Serializer;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.ucr.cs.riple.taint.ucrtainting.util.TypeUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.TaintTyperAnnotatedTypeFactory;
import edu.xxx.cs.yyyyy.taint.tainttyper.serialization.Serializer;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.TypeUtils;
import java.util.Objects;
import javax.lang.model.element.Element;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.qual;
package edu.xxx.cs.yyyyy.taint.tainttyper.qual;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.qual;
package edu.xxx.cs.yyyyy.taint.tainttyper.qual;

import java.lang.annotation.*;
import org.checkerframework.framework.qual.SubtypeOf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.qual;
package edu.xxx.cs.yyyyy.taint.tainttyper.qual;

import java.lang.annotation.*;
import org.checkerframework.framework.qual.DefaultQualifierInHierarchy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.qual;
package edu.xxx.cs.yyyyy.taint.tainttyper.qual;

import java.lang.annotation.*;
import org.checkerframework.framework.qual.SubtypeOf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.qual;
package edu.xxx.cs.yyyyy.taint.tainttyper.qual;

import java.lang.annotation.*;
import org.checkerframework.framework.qual.LiteralKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
* THE SOFTWARE.
*/

package edu.ucr.cs.riple.taint.ucrtainting.serialization;
package edu.xxx.cs.yyyyy.taint.tainttyper.serialization;

import com.google.common.collect.ImmutableSet;
import com.sun.source.util.TreePath;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.tree.JCTree;
import edu.ucr.cs.riple.taint.ucrtainting.util.SymbolUtils;
import edu.xxx.cs.yyyyy.taint.tainttyper.util.SymbolUtils;
import java.nio.file.Path;
import java.util.Set;
import javax.annotation.Nullable;
Expand Down
Loading

0 comments on commit 8987b66

Please sign in to comment.