In source jas_icc.c, function jas_icclut8_output the statements:
lut8->clut = 0;
lut8->intabsbuf = 0;
lut8->outtabsbuf = 0;
always provoke memory violation in the following statements:
if (jas_iccputuint8(out, lut8->intabsbuf[i])) {
if (jas_iccputuint8(out, lut8->outtabsbuf[i])) {
if (jas_iccputuint8(out, lut8->clut[i])) {
In source jas_image.c the following is missing:
#ifdef _MSC_VER
#include <malloc.h>
#endif
Then, after _alloca (two times present; but _malloca should not be better?), the pointer not null test is missing:
if (!stack_buffer)
return -1;
In source jpc_t1enc.c, macro refpass_step
(d) = *(dp); \ --> confusion: d is not a macro argument, but a variable declared outside the macro:
d = *(dp); \
In source jas_icc.c, function jas_icclut8_output the statements:
lut8->clut = 0;
lut8->intabsbuf = 0;
lut8->outtabsbuf = 0;
always provoke memory violation in the following statements:
if (jas_iccputuint8(out, lut8->intabsbuf[i])) {
if (jas_iccputuint8(out, lut8->outtabsbuf[i])) {
if (jas_iccputuint8(out, lut8->clut[i])) {
In source jas_image.c the following is missing:
#ifdef _MSC_VER
#include <malloc.h>
#endif
Then, after _alloca (two times present; but _malloca should not be better?), the pointer not null test is missing:
if (!stack_buffer)
return -1;
In source jpc_t1enc.c, macro refpass_step
(d) = *(dp); \ --> confusion: d is not a macro argument, but a variable declared outside the macro:
d = *(dp); \