Skip to content
Snippets Groups Projects
  1. May 07, 2014
  2. May 02, 2014
  3. May 01, 2014
  4. 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
  5. Apr 29, 2014
  6. Apr 28, 2014
  7. Apr 25, 2014
Loading