aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Handle pixel formats with odd shift valuesPierre Ossman2019-12-201-0/+6
| | | | | | | | | | | Our fast paths assume that each channel fits in to a separate byte. That means the shift needs to be a multiple of 8. Start actually checking this so that a client cannot trip us up and possibly cause incorrect code exection. Issue found by Pavel Cheremushkin from Kaspersky Lab. (cherry picked from commit 05e28490873a861379c943bf616614b78b558b89)
* Add unit tests for PixelFormat.is888() detectionPierre Ossman2019-12-201-1/+59
| | | | (cherry picked from commit 91bdaa6c87a7f311163b5f1e4bbcd9de584968cd)
* Add sanity checks for PixelFormat shift valuesPierre Ossman2019-12-201-0/+6
| | | | | | | | | | | | | | Otherwise we might be tricked in to reading and writing things at incorrect offsets for pixels which ultimately could result in an attacker writing things to the stack or heap and executing things they shouldn't. This only affects the server as the client never uses the pixel format suggested by th server. Issue found by Pavel Cheremushkin from Kaspersky Lab. (cherry picked from commit cd1d650c532a46e95a1229dffaf281c76a50cdfe)
* Fix depth sanity test in PixelFormatPierre Ossman2019-12-201-0/+4
| | | | (cherry picked from commit f1b9b868ec943d51ef631f53a095d48d3f178f4f)
* Add unit test for PixelFormat sanity checksPierre Ossman2019-12-202-0/+117
| | | | (cherry picked from commit 014c5012377519d7f0add23ebac077ccd882aa9f)
* Add unit tests for convertLF() and convertCRLF()Pierre Ossman2019-09-252-0/+127
|
* Split test programs to benchmarking and unit testsPierre Ossman2019-09-253-0/+448
They have very different purpose, so make things easier to work with by having multiple directories.