Permalink
Commits on Aug 4, 2016
  1. @dprokoptsev

    Merge pull request #41 from moskupols/suppress-deprecation-warnings

    Suppress gcc deprecation warnings in pire/stub/stl.h
    dprokoptsev committed on GitHub Aug 4, 2016
  2. @moskupols
Commits on Aug 3, 2016
  1. @moskupols
Commits on Jul 27, 2016
  1. @dprokoptsev

    Merge pull request #40 from moskupols/update-mkstl-pl

    Make mkstl.pl generate current state of stl.h
    dprokoptsev committed on GitHub Jul 27, 2016
Commits on Jul 26, 2016
  1. @moskupols
Commits on Jun 8, 2016
  1. Merge branch 'bison_memleak' of https://github.com/sorc1/pire

    Dmitry Prokoptsev committed Jun 8, 2016
Commits on Apr 12, 2016
  1. @dprokoptsev
Commits on Apr 6, 2016
  1. @davenger

    Merge pull request #39 from starius/fix-sanitizer-error

    fix sanitizer error in test
    davenger committed Apr 6, 2016
Commits on Apr 5, 2016
  1. @starius

    fix sanitizer error in test

    auto_ptr must not be used with arrays:
    alloc-dealloc-mismatch (operator new [] vs operator delete).
    starius committed Apr 5, 2016
Commits on Apr 4, 2016
  1. @dprokoptsev

    Merge pull request #37 from sorc1/uintptr_t

    run: deal with pointers safely
    dprokoptsev committed Apr 4, 2016
Commits on Apr 1, 2016
  1. @sorc1

    lexer: fix Parse() memleaks on invalid regexps

    Parse() uses bison to parse regexps strings.
    bison clears its own state stack before exiting from yyparse().
    But bison don't support C++ exceptions so its state remains
    uncleared if an exception is thrown from its yylex() or yyerror()
    callbacks.
    
    So, we have to delay a Pire::Error exception & re-throw it just after
    exiting from yyparse().
    
    Delaying exceptions other than Pire::Error is out of scope of the fix.
    sorc1 committed Apr 1, 2016
  2. @sorc1

    run: deal with pointers safely

    Impl::DoRun() implies that sizeof(void *) == sizeof(size_t).
    But there is no such guarantee.
    
    So it is safer to:
    1. Use sizeof(size_t) instead of sizeof(void *)
    2. Cast (char *) to uintptr_t when calculating unaligned pointers offsets
    sorc1 committed Apr 1, 2016
Commits on Mar 25, 2016
  1. @davenger

    Merge pull request #32 from starius/backward-compatibility-for-re-ver…

    …sion-6
    
    ABI backward compatibility with RE_VERSION 6
    davenger committed Mar 25, 2016
Commits on Mar 24, 2016
  1. @davenger

    Fir for UTF8 compilation when scanner is a global var

    In " Encoding issues #36" UtfRanges::First isn't yet initialized when scanner is compiled as a global variable
    davenger committed Mar 24, 2016
Commits on Mar 16, 2016
  1. @dprokoptsev

    Merge pull request #35 from starius/accurate-string-end

    DoRun: fix possible invalid read (second attempt)
    dprokoptsev committed Mar 16, 2016
Commits on Mar 15, 2016
  1. @starius

    DoRun: fix possible invalid read

    If a string passed to DoRun is less than sizeof(size_t), then its content
    can't be read as if its type is size_t*. DoRun splits the string to 3
    parts: pre-aligned, algned and post-aligned. If there is no aligned part
    of a string, then whole string is treated as pre- and post-aligned.
    
    The error was caused by casting pre- and post-aligned parts to size_t*.
    Now they are processed by code operating on char* (function SafeRunChunk).
    (Actually pre-aligned part is allowed to be casted to size_t*, if aligned
    part exists, ie. length of the string > size(size_t).)
    starius committed Aug 19, 2015
Commits on Feb 24, 2016
  1. @davenger

    Merge pull request #34 from starius/count16-2

    CountingScanner: increase RE count from 4 to 16
    davenger committed Feb 24, 2016
  2. @starius

    count: rename new helper classes

    s/PerformReseter/ResetPerformer/
    s/PerformIncrementer/IncrementPerformer/
    starius committed Feb 19, 2016
  3. @starius
Commits on Feb 15, 2016
  1. @starius

    CountingScanner: increase RE count from 4 to 16

      * Update IncrementMask and ResetMask (16 bits instead of 4).
      * Make LoadedScanner::MAX_RE_COUNT public.
      * Increase number of counters in State from 4 to 16.
      * Implement incrementing and resetting with recursive template
        to avoid repeats of code.
      * Provide template method TakeActionImpl<ActualReCount>
        which is called with ActualReCount = 16 by users who want 16 REs.
      * Method TakeAction calls TakeActionImpl<4>, so nothing changes for
        users of previous version of CountingScanner.
    
    This change is API and ABI backward-compatible.
    starius committed Feb 9, 2016
Commits on Feb 10, 2016
  1. @davenger

    Merge pull request #33 from starius/warn-and-style

    Fix warnings and style in some files
    davenger committed Feb 10, 2016
Commits on Feb 9, 2016
  1. @starius
  2. @pg83 @starius

    fix msvc warnings

    arc. rev. 1960276
    pg83 committed with starius Oct 23, 2015
  3. @velavokr @starius

    warn fix

    arc. rev. 1013534
    velavokr committed with starius May 16, 2013
Commits on Feb 1, 2016
  1. Fix FORCED_INLINE definition.

    Dmitry Prokoptsev committed Feb 1, 2016
Commits on Dec 6, 2015
  1. @starius
Commits on Dec 4, 2015
  1. @starius

    fix crash in LoadedScanner::Load

    Read to a real buffer instead of null pointer.
    starius committed Dec 4, 2015
Commits on Dec 3, 2015
  1. @starius

    ABI backward compatibility with RE_VERSION 6

    Fix reading scanners serialized with previous PIRE version (RE_VERSION 6).
    starius committed Dec 3, 2015
Commits on Nov 19, 2015
  1. Merge branch 'starius/strip-loaded' (closes #30).

    Dmitry Prokoptsev committed Nov 19, 2015
  2. Bump scanner version.

    Dmitry Prokoptsev committed Nov 19, 2015
Commits on Nov 11, 2015
  1. @starius

    loaded: remove useless field m_actions

    Values stored in m_actions are copies of members .action of structures
    Transition stored in m_jumps. Removing m_actions saves 1/3 of memory.
    
    close #29
    starius committed Nov 10, 2015
  2. @starius
  3. @starius
Commits on Oct 26, 2015
  1. @davenger

    Merge pull request #26 from starius/publish-capturing

    publish some methods of CapturingScanner, CountingScanner and SlowScanner
    davenger committed Oct 26, 2015
Commits on Oct 9, 2015
  1. @starius