Skip to content
Snippets Groups Projects
  1. Jun 26, 2014
  2. Jun 25, 2014
    • Scott Vokes's avatar
      Fix possible state yielding MORE from finish(), but 0 bytes from poll(). · 06d4094c
      Scott Vokes authored
      If the decompression stream was terminated with a 1 bit at exactly the
      byte boundary (perhaps due to decompressing from flash memory and
      sinking erased 0xFF bytes until the end of a flash page), it could end
      up in a state where heatshrink_decoder_finish() would return
      HSDR_FINISH_MORE, but calling heatshrink_decoder_poll would always yield
      0 bytes of output. If _both_ results were not checked, this could lead to
      the code driving them uselessly calling them in a loop.
      
      Added regression test case:
      decoder_should_not_get_stuck_with_finish_yielding_MORE_but_0_bytes_output_from_poll
      
      Resolved by explicitly checking remaining input length in
      heatshrink_decoder_finish in the HSDS_YIELD_LITERAL state, since it is
      not safe to assume that the decompression stream input will be padded
      with 0 bits.
      06d4094c
  3. Mar 25, 2014
  4. Jan 14, 2014
  5. Dec 28, 2013
  6. Dec 21, 2013
  7. Dec 19, 2013
  8. Aug 30, 2013
  9. May 15, 2013
    • Scott Vokes's avatar
      Change from BSD-3 License to ISC License. · 7dbabf93
      Scott Vokes authored
      The "Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution."
      clause of the BSD license seems to be problematic manufacturers that
      do not otherwise provide written documentation for hardware.
      7dbabf93
    • Scott Vokes's avatar
      Reduce default static_input_buffer_size. · cf564c38
      Scott Vokes authored
      There seems to be diminishing returns after 32 bytes, and it takes
      significantly less space. (It's only a default, anyway.)
      cf564c38
  10. May 13, 2013
  11. May 12, 2013
  12. May 11, 2013
  13. Mar 25, 2013
  14. Mar 14, 2013
Loading