Menu

#348 Type mismatch between ddjvu_cache_set_size() and DjVuFileCache::set_max_size()

djvulibre
open
nobody
None
5
2022-08-05
2022-08-05
Jakub Wilk
No

ddjvu_cache_set_size() takes an unsigned long argument, but then it passes it directly to DjVuFileCache::set_max_size(), which expect an int.
The number will wrap around if it's bigger than INT_MAX.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB