[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1759-gbfeff28
[email protected] (Ken Sharp) Sat, 26 Oct 2019 14:43:43 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via bfeff28bb56ee4424ac78619792c18bf4f5104ef (commit)
from aba3375ac24f8e02659d9b1eb9093909618cdb9f (commit)
----------------------------------------------------------------------
commit bfeff28bb56ee4424ac78619792c18bf4f5104ef
Author: Ken Sharp <[email protected]>
Date: Sat Oct 26 15:43:38 2019 +0100
Coverity ID #126579 take 2
Commit 13b3c67366aef69beed5f9c7e058c59a03714997 addressed this, but
there were 2 instances and that only fixed one. Fix the other here.
diff --git a/devices/vector/gdevpdfg.c b/devices/vector/gdevpdfg.c
index 665890d..d82aca5 100644
--- a/devices/vector/gdevpdfg.c
+++ b/devices/vector/gdevpdfg.c
@@ -776,7 +776,7 @@ int convert_DeviceN_alternate(gx_device_pdf * pdev, const gs_gstate * pgs, const
return_error(gs_error_VMerror);
samples = (unsigned int)pow(2, pcs->params.device_n.num_components);
- data_buff = gs_alloc_bytes(pdev->memory, pdev->color_info.num_components * samples, "Convert DeviceN");
+ data_buff = gs_alloc_bytes(pdev->memory, (unsigned long)pdev->color_info.num_components * samples, "Convert DeviceN");
if (data_buff == 0) {
COS_FREE(pca, "convert DeviceN");
return_error(gs_error_VMerror);
Summary of changes:
devices/vector/gdevpdfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)