Skip to content
Snippets Groups Projects
  1. Apr 13, 2015
  2. Apr 11, 2015
  3. Jan 24, 2015
  4. May 01, 2014
  5. Apr 30, 2014
    • Jared Hancock's avatar
      tnef: Fix major issue iterating over attr streams · 34d8d0b4
      Jared Hancock authored
      The original logic would read the count of attributes in the stream and then
      read the first attribute in the constructor of TnefAttributeStreamReader.
      Then the iterator interface would call ::rewind() before iterating to the
      first item. rewind() set the @pos attribute to zero, which would cause the
      attribute count (4-byte int) to be interpreted incorrectly as part of the
      first attribute.
      
      The new logic sets the position at 4 after rewind()ing, and does not read
      the first attribute twice. It also properly detects the end of the attribute
      stream by the number of attributes advertised as the first four bytes of the
      stream (read into the @count attribute initially).
      34d8d0b4
  6. Feb 19, 2014
  7. Feb 18, 2014
  8. Feb 17, 2014
  9. Feb 11, 2014
Loading