diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-01 20:02:57 +0200 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-01 20:02:57 +0200 |
| commit | d8f96450bc8bb70012b1db9f8bd44690e36ef048 (patch) | |
| tree | 1fe45ac7d1545d313c557d293fdb1aaff603a7e9 /jpg.c | |
| parent | c538b6384b4cd71b9c567e4982b53184f8f7a153 (diff) | |
| download | wbg-d8f96450bc8bb70012b1db9f8bd44690e36ef048.tar.gz | |
jpg: fix overly large allocation of the image backing buffer
Diffstat (limited to 'jpg.c')
| -rw-r--r-- | jpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ jpg_load(const char *path) LOG_DBG("width=%d, height=%d, stride=%d, components=%d", width, height, stride, cinfo.output_components); - image_data = malloc(height * width * stride); + image_data = malloc(height * stride); if (image_data == NULL) goto err; |
