Skip to content
Snippets Groups Projects
  1. Jun 07, 2015
  2. May 31, 2015
  3. May 24, 2015
    • Scott Vokes's avatar
      Merge pull request #15 from unixdj/signed · a01e1e00
      Scott Vokes authored
      Fix signed/unsigned comparison
      a01e1e00
    • Scott Vokes's avatar
      Change MIN_LOOKAHEAD_BITS from 2 to 3 to prevent ambiguity. · 15ebaddc
      Scott Vokes authored
      As reported by @unixdj, there is a case where a few bytes can be
      dropped from the end of the bytestream when used with a window_sz2
      of 4 and lookahead_sz2 of 2 (-w 4 -l 2):
      
          $ echo -n aaaa | ./heatshrink -e -w4 -l2 | ./heatshrink -d -w4 -l2
          a   # should be "aaaa"
      
      While st_check_for_input can treat 7 bits as sufficient input when
      -w is 4 and -l is 2, that creates a corresponding issue where 1
      spillover bit from the previous byte leads to filler of 0b000 0000,
      which is interpreted as a marker to repeat (0b0) from 1 byte back
      (0b0000) for 1 byte (0b00), leading to a duplication of the last
      byte of input. Using a w,l pair where w+l < 7 leads to trailing
      bits that are ambiguous, so raise the minimum lookahead bits to 3.
      
      This problem does not occur with -w 4 -l 3, or any other valid config.
      15ebaddc
    • Scott Vokes's avatar
      Make all theft tests vary window and lookahead size; refactor tests. · 25c18261
      Scott Vokes authored
      This is to ensure the full state space is explored. malloc (and re-use,
      after zeroing) large in-memory buffers for use in the tests, as these
      will not potentially fill the way smaller stack-allocated ones can.
      25c18261
    • Scott Vokes's avatar
      Update to v1.0.0 of greatest. · 553c7332
      Scott Vokes authored
      553c7332
  4. May 14, 2015
  5. May 13, 2015
  6. May 11, 2015
  7. May 08, 2015
  8. Jan 03, 2015
    • Scott Vokes's avatar
      Bump version to v0.3.2. · 0e4f18a2
      Scott Vokes authored
      Main changes:
      
      1) Several portability improvements for Windows/MinGW and other platforms.
         Thanks Phil Pemberton, Steffen Jaeckel.
      
      2) Significant improvement of the Makefile / build setup, to make
         switching between builds of heatshrink using static or dynamic
         allocation easier.
      
      3) Added property-based tests (Optional; depends on theft) to the test
         suite.
    • Scott Vokes's avatar
      Use 'make ci' target for Travis-CI · e1bbe14d
      Scott Vokes authored
      e1bbe14d
    • Scott Vokes's avatar
      Complete overhaul of Makefile: both static & dynamic variant static libs. · fa9f8f2f
      Scott Vokes authored
      i.e., libheatshrink_dynamic.a and libheatshrink_static.a, which use
      dynamic allocation and static allocation (as configured), respectively.
      Build both, both test suites, and the command line tool.
      
      Get rid of the default "make" target that just suggested modifying the
      config and building one or the other.
      
      Add 'make install' and 'make ci' targets.
      fa9f8f2f
Loading