1. 30 Jun, 2016 1 commit
  2. 28 Jun, 2016 9 commits
  3. 26 Jun, 2016 6 commits
  4. 25 Jun, 2016 1 commit
  5. 20 Jun, 2016 2 commits
  6. 13 Jun, 2016 1 commit
  7. 22 May, 2016 1 commit
    • Erik de Castro Lopo's avatar
      libFLAC: More metadata_iterators fixes · fdc1ccf2
      Erik de Castro Lopo authored
      The previous fixes for metadata_iterators didn't completely fix the problem.
      
      The behavior of chain_prepare_for_write_() must always be the same as the
      behavior of FLAC__metadata_chain_check_if_tempfile_needed(). Before this
      fix, one check was missing in FLAC__metadata_chain_check_if_tempfile_needed(),
      and also chain_prepare_for_write_() checked the sizes of the metadata blocks
      *after* making the changes to the chain, while
      FLAC__metadata_chain_check_if_tempfile_needed() does it *before* the changes.
      
      This patch changes FLAC__metadata_chain_check_if_tempfile_needed() so that it
      keeps some info (lbs_state, lbs_size) about estimated changes and then uses
      it to check the block sizes.
      
      It also simplifies FLAC__metadata_chain_check_if_tempfile_needed() a little.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      fdc1ccf2
  8. 12 May, 2016 3 commits
  9. 11 May, 2016 1 commit
  10. 08 May, 2016 1 commit
  11. 05 May, 2016 1 commit
    • Erik de Castro Lopo's avatar
      libFLAC: Add a workaround for a bug in MSVC2105 update2 · 94a61241
      Erik de Castro Lopo authored
      MSVC2105 update2 compiles the C code:
      
          abs_residual_partition_sums[partition] =
                        (FLAC__uint32)_mm_cvtsi128_si32(mm_sum);
      
      into this:
      
          movq    QWORD PTR [rsi], xmm2
      
      while it should be:
      
          movd    eax, xmm2
          mov     QWORD PTR [rsi], rax
      
      With this patch, MSVC emits:
      
          movq    QWORD PTR [rsi], xmm2
          mov     DWORD PTR [rsi+4], r9d
      
      so the price of this workaround is 1 extra write instruction per
      partition.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      94a61241
  12. 01 May, 2016 5 commits
    • Erik de Castro Lopo's avatar
      metadata_iterators.c: Limit padding size · 387992bd
      Erik de Castro Lopo authored
      Without this fix, its possible for libFLAC to create an oversized
      padding metadata block when:
      
      a) it merges existing padding blocks
      
      or
      b) it expands padding block during metadata changes
      
      resulting in a corrupt FLAC file.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      387992bd
    • Erik de Castro Lopo's avatar
      Windows/MSVC: Add ENABLE_64_BIT_WORDS macro · 94ff346a
      Erik de Castro Lopo authored
      Allow setting of ENABLE_64_BIT_WORDS preprocessor variable for
      libFLAC_dynamic, libFLAC_static and test_libFLAC projects and x64
      platform.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      94ff346a
    • Erik de Castro Lopo's avatar
      bitwrite.c: Tweaks · f3a16f85
      Erik de Castro Lopo authored
      * Removes unused FLAC__WORD_ALL_ONES definition.
      * Add comment that unused bits of accumulator can contain garbage.
      * Turn assert inside FLAC__bitwriter_write_utf8_uint32 into runtime
        check (similar to FLAC__bitwriter_write_utf8_uint64() function).
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      f3a16f85
    • Erik de Castro Lopo's avatar
      libFLAC: Add metadata size checks to FLAC library · 94386fde
      Erik de Castro Lopo authored
      This follows on from the previous patch.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      94386fde
    • Erik de Castro Lopo's avatar
      flac/metaflac: Limit the size of metadata blocks · 516a7ad4
      Erik de Castro Lopo authored
      Limit allow image file size to slightly less than 2^24 bytes so that
      the file size plus extra house keeping data is strictly less that
      2^24 bytes in size.
      
      Patch-from: lvqcl <lvqcl.mail@gmail.com>
      516a7ad4
  13. 27 Apr, 2016 1 commit
  14. 26 Apr, 2016 1 commit
  15. 20 Mar, 2016 5 commits
  16. 14 Mar, 2016 1 commit