dnp: fix buffer overflow for ds620 6x9-div2
This commit is contained in:
parent
75eb6abf0d
commit
99b2d97cf5
|
@ -949,7 +949,7 @@ static int dnpds40_attach(void *vctx, struct libusb_device_handle *dev, int type
|
|||
break;
|
||||
case P_DNP_DS620:
|
||||
ctx->native_width = 1920;
|
||||
ctx->max_height = 5480;
|
||||
ctx->max_height = 5604;
|
||||
ctx->correct_count = 1;
|
||||
ctx->supports_counterp = 1;
|
||||
ctx->supports_matte = 1;
|
||||
|
@ -1286,7 +1286,7 @@ static int dnpds40_read_parse(void *vctx, const void **vjob, int data_fd, int co
|
|||
i = read(data_fd, job->databuf + job->datalen + sizeof(struct dnpds40_cmd),
|
||||
remain);
|
||||
if (i < 0) {
|
||||
ERROR("Data Read Error: %d (%d/%d @%d)\n", i, remain, j, job->datalen);
|
||||
ERROR("Data Read Error: %d (%d/%d @%d/%d)\n", i, remain, j, job->datalen,MAX_PRINTJOB_LEN);
|
||||
dnpds40_cleanup_job(job);
|
||||
return i;
|
||||
}
|
||||
|
@ -3023,7 +3023,7 @@ static const char *dnpds40_prefixes[] = {
|
|||
/* Exported */
|
||||
struct dyesub_backend dnpds40_backend = {
|
||||
.name = "DNP DS-series / Citizen C-series",
|
||||
.version = "0.110",
|
||||
.version = "0.111",
|
||||
.uri_prefixes = dnpds40_prefixes,
|
||||
.flags = BACKEND_FLAG_JOBLIST,
|
||||
.cmdline_usage = dnpds40_cmdline,
|
||||
|
|
Loading…
Reference in a new issue