Crest Infosolutions Git Repository

  1. 08 Sep, 2021 1 commit
  2. 06 Sep, 2021 1 commit
  3. 05 Sep, 2021 1 commit
  4. 03 Sep, 2021 4 commits
    • Emma Jin's avatar
      Free tree-sitter tree when done (#3792) · 3f55f5cc
      Emma Jin authored
      * Free tree-sitter tree when done
      
      * Remove parallel.invoke
      
      * Remove helper semgrep rule
      
      * Remove the parallel.set, now unnecessary
      
      * Include comments
      
      * Update ocaml-tree-sitter-core
      3f55f5cc
    • Yoann Padioleau's avatar
      Add record for AST_generic.type_ (#3814) · 7ce0c809
      Yoann Padioleau authored
      This will be useful for cpp_to_generic.ml to record type qualifiers
      for types.
      
      test plan:
      make test
      7ce0c809
    • Yoann Padioleau's avatar
      [C++] (#3813) · eafe72a8
      Yoann Padioleau authored
      Adding cpp_to_generic.ml boilerplate
      this was generated thx to ocamltarzan -choice map_todo
      
      test plan:
      make test
      eafe72a8
    • Iago Abal's avatar
      cli: Improve how semgrep-core fatal errors are reported (#3809) · e5cf598a
      Iago Abal authored
      1. The error message now specficies rule and target file.
      2. Only the key info is displayed in red, the error trace will be
         white/gray, to avoid overwhelming the user with internal details.
      
      Closes #3774
      
      test plan:
      
          % cat test.yaml
          rules:
          - id: test
              languages:
              - py
              message: Match Found!
              pattern: x
              severity: WARNING
          % cat test.py
          def test():
              return x
              }
          % semgrep -c test.yaml test.py
      e5cf598a
  5. 02 Sep, 2021 3 commits
  6. 01 Sep, 2021 9 commits
  7. 31 Aug, 2021 2 commits
  8. 30 Aug, 2021 3 commits
  9. 27 Aug, 2021 2 commits
  10. 26 Aug, 2021 4 commits
  11. 25 Aug, 2021 2 commits
  12. 23 Aug, 2021 2 commits
    • Iago Abal's avatar
      Optimize pattern-inside's ending with `...` (#3740) · f23db21b
      Iago Abal authored
      This probably won't have a huge perf impact overall due to parsing being
      the main bottle neck. However it does help perf and it's a fairly simple
      optimization.
      
      test plan:
      
          % make test
      
          % semgrep-core -lang js -config ~/semgrep-rules/typescript/react/security/audit/react-css-injection.yaml ~/semgrep/perf/bench/big-js/input/big-js
            #^ Now takes about ~19s (vs ~27s, or ~1.4x faster)
            # -profile reports matching time is ~2s (vs ~10s, or ~5x faster)
      
          % semgrep-core -profile -lang js \
               -config semgrep-rules/typescript/react/security/audit/react-props-injection.yaml \
               semgrep/parsing-stats/lang/javascript/tmp/mui-org-material-ui/test/bundling/fixtures/next-webpack5
            #^ Now takes about ~0.1s (vs ~1.5s, or ~12x faster)
      
          % semgrep -j1 --time --max-target-bytes=250000 --config semgrep-rules/typescript/react/security/audit/react-props-injection.yaml semgrep/parsing-stats/lang/javascript/tmp/*
            #^ Match time dropped from ~20s to ~10 (2x faster), but overall
            # there is not much of a speed up since parsing takes ~80% of
            # the time.
      f23db21b
    • Iago Abal's avatar
      AST_to_IL: Do not disregard a function call due to one argument (#3714) · f33f75bf
      Iago Abal authored
      test plan:
      make test # test included
      f33f75bf
  13. 20 Aug, 2021 1 commit
  14. 18 Aug, 2021 2 commits
  15. 17 Aug, 2021 3 commits