Skip to content

Problems with source code in Visual Studio #371

@SebastianoGuer

Description

@SebastianoGuer

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); \

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions