7 Commits

Author SHA1 Message Date
Felipe Zimmerle
9f47f1473c
Removes memory leaks on the parse
- Parser location is now a custom class. It holds a shared pointer
  with the file name; If the parser fails, the resource is deleted.

 - To follow the parser change, the Rule class now holds the file
  name in a shared pointer instead of a unique pointer. As a shared
  pointer we avoid duplication of the file name in memory, plus,
  it frees itself when not in use anymore.

 - Operator init also accepting the filename as a shared pointer.

 - Driver is treating m_location was privative. Now it holds a
  std::list<std::shared_ptr<yy::seclang_parser::location_type>>
  instead of: std::list<yy::seclang_parser::location_type *>.

 - Fix: addSecRule on Driver() was changed from RuleWithAction to
  RuleWithOperator.

 - Minor changes on the regression and rules-check utility to force
  deletion of resources even when they fail.

 - Couple of virtual destructors were placed to force the shared
  pointer decrementing on shared variables.

 - Deleted constructors for copy were placed for the sake of
  readability.
2021-01-12 13:01:26 -03:00
Felipe Zimmerle
8d6209f652
gitignore: Adds binaries from examples to the ignore list 2017-08-20 20:10:56 -03:00
Lasse Karstensen
e3b9e6061f
Ignore droppings from make check. 2017-07-28 21:49:33 -03:00
Lasse Karstensen
4d1739a2c3
Ignore built files.
Clean up git status output so the important parts are visible.
2017-07-28 21:49:33 -03:00
Felipe Zimmerle
efb90bb554
Adds OWASP rules to the gitignore list 2017-03-06 15:02:01 -03:00
Felipe Zimmerle
f9552ede2b
Adds missing file 2017-03-06 15:02:01 -03:00
Andrew Hutchings
64a34584cd Build system fixes
1. Fix the build order so "make -j4" works
2. Remove binaries from git tree
3. Add .gitignore file
2015-07-06 15:53:44 -03:00