wrlib: added a limit to the image cache size (Coverity #50223)
commit907dd97e45f7a91a222c22bde8b4f1433c6b3373
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 14 Jun 2014 17:34:02 +0000 (14 19:34 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 15 Jun 2014 18:45:20 +0000 (15 19:45 +0100)
tree1630f975ce7091ae4349d609177b1fa7b966c93d
parent6623c27f4e2d56ccf853fade663af7047e7224f1
wrlib: added a limit to the image cache size (Coverity #50223)

As pointed by Coverity, environment variables cannot be considered
trustworthy ("tainted"), so we need to make sure the values provided are
within reasonable bounds for safe operations.

Seized the opportunity to try to provide clearer name for the constants
defining the default value.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/load.c