summaryrefslogtreecommitdiffstats
path: root/libass/ass_blur.c
Commit message (Collapse)AuthorAgeFilesLines
* ass_blur: check for memory allocation size overflowswm42020-03-061-1/+7
| | | | | | | | | Check for overflows that could happen with alignment and the multiplication. The INT_MAX / 4 is somewhat approximate and assumes that degenerate alignment values won't happen. This still assumes that a possibly overflowing end_w/end_h calculation doesn't make the compiler's optimizer destroy the overflow checks.
* cosmetic: fix codestyleDr.Smile2017-07-311-14/+14
|
* Fix blur coefficient calculation buffer overflowGrigori Goronzy2016-10-041-1/+1
| | | | | Found by fuzzer test case id:000082,sig:11,src:002579,op:havoc,rep:8. Correctness should be checked, but this fixes the overflow for good.
* bitmap: use calloc instead of malloc/memsetRodger Combs2016-09-241-1/+1
| | | | This can improve perf somewhat with large bitmaps
* Fully fix compilation with MSVC/ICLOleg Oshmyan2015-09-171-0/+1
| | | | | | | | | As before, this does not add any build system support: a config.h file and a project must still be manually created (or the compiler can be run manually instead of using a project). Signed-off-by: Grigori Goronzy <greg@kinoho.net> Signed-off-by: Oleg Oshmyan <chortos@inbox.lv>
* Include config.h in all source files and in no headersOleg Oshmyan2015-09-171-0/+2
| | | | | | | | | This way, #include "config.h" is consistently the very first thing the compiler sees when compiling any file. Some source files currently don't use anything defined in config.h, but it's easier and less error-prone to include it now to anticipate possible future changes in those files, config.h or other headers.
* Implement cascade gaussian blurDr.Smile2015-07-041-0/+909
That's complete version with SSE2/AVX2 assembly. Should be much faster than old algorithm even in pure C. Algorithm description can be found in this article (PDF): https://github.com/MrSmile/CascadeBlur/releases Close #9