Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various checks to improve handling of damaged input files #643

Merged

Commits on Jan 19, 2020

  1. Force tile sizes to be less than INT_MAX bytes, in line with the maxi…

    …mum dimensions of data windows
    
    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    04c3467 View commit details
    Browse the repository at this point in the history
  2. validate tiles have valid headers when raw reading tiles

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    7d24190 View commit details
    Browse the repository at this point in the history
  3. Sanity check for input buffer overruns in RLE uncompress

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    d0303d1 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. fixes for DWA uncompress: sanity check unknown data reading, off-by-o…

    …ne error on max suffix string length
    
    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    749ac87 View commit details
    Browse the repository at this point in the history
  2. exrmakepreview: switch preview-to-full scaling vars from floats to do…

    …ubles to prevent rounding causing overflows
    
    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    6e3d95a View commit details
    Browse the repository at this point in the history
  3. prevent int overflow when calculating buffer offsets

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    2c5c1ae View commit details
    Browse the repository at this point in the history
  4. bypass SSE optimization when skipping subsampled channels

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    8b97a01 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. check for bad bit counts in Huff encoded data

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    40c6dd5 View commit details
    Browse the repository at this point in the history
  2. improve bad count detection in huf decompress

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    b1c9ddc View commit details
    Browse the repository at this point in the history
  3. sanity check data reads from PIZ data

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    41d7b7e View commit details
    Browse the repository at this point in the history
  4. fix memory leak when reading damaged PIZ files

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    904bc10 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. abort when file claims to have excessive scanline data requirements

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    4dbf8c8 View commit details
    Browse the repository at this point in the history
  2. avoid creating compression object just to compute numLinesInBuffer

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    8c1280e View commit details
    Browse the repository at this point in the history
  3. fix check for valid ruleSize

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    315265c View commit details
    Browse the repository at this point in the history
  4. fix memory leak on DeepTiledInput files: compressor for sample count …

    …table wasn't deleted
    
    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    55bdbc5 View commit details
    Browse the repository at this point in the history
  5. fix memory leak in test suite

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    60dd4e5 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. fixes to memory leak when constructors throw exceptions

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    801d880 View commit details
    Browse the repository at this point in the history
  2. Fix cleanup when DeepScanLineInputFile constructor throws

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    714a210 View commit details
    Browse the repository at this point in the history
  3. test for multipart threading was leaking memory

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    533320a View commit details
    Browse the repository at this point in the history
  4. fix test suite memory leak from testDeepTiledBasic

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    46ec601 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2020

  1. missing header for ptrdiff_t

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    851b159 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Configuration menu
    Copy the full SHA
    b26f8ab View commit details
    Browse the repository at this point in the history
  2. minor tweaks and typo fixes

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    c264aef View commit details
    Browse the repository at this point in the history
  3. force x/y Sampling to 1 for Deep Scanline Images

    Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
    peterhillman committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    41a99da View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2020

  1. Configuration menu
    Copy the full SHA
    25c2beb View commit details
    Browse the repository at this point in the history