From 1f2b68e6b96529f95b27f6e20c31818d20aec1f2 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 23 May 2019 09:04:29 -0400 Subject: [PATCH] sonyupdneo: Fix buffer overflow with multi-page jobs. --- backend_sonyupdneo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend_sonyupdneo.c b/backend_sonyupdneo.c index a9201dd..582d468 100644 --- a/backend_sonyupdneo.c +++ b/backend_sonyupdneo.c @@ -180,7 +180,7 @@ static int updneo_read_parse(void *vctx, const void **vjob, int data_fd, int cop /* Behavior based on the various blocks */ if (!strncmp("PJL-T", tok, 5)) - run = 1; + run = 0; else if (!strncmp("SONY-PDL-DS2", tok, 12)) job->payload_offset = job->datalen; @@ -330,7 +330,7 @@ static const char *sonyupdneo_prefixes[] = { struct dyesub_backend sonyupdneo_backend = { .name = "Sony UP-D Neo", - .version = "0.01WIP", + .version = "0.02WIP", .uri_prefixes = sonyupdneo_prefixes, .cmdline_arg = updneo_cmdline_arg, .init = updneo_init,