summaryrefslogtreecommitdiff
path: root/systemv
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-06-19 09:07:20 -0400
committerGitHub <noreply@github.com>2017-06-19 09:07:20 -0400
commit5c476bf970766279bfba6b5535968e9b233c0ba0 (patch)
tree95a475248e6d7a8028a71ba2aeacff027cc48872 /systemv
parentef338d0c83e966204a94af8f6ff61814292e4c4e (diff)
parent95633d62829e1babc3ef7b8ac710994aa69901b1 (diff)
downloadcups-5c476bf970766279bfba6b5535968e9b233c0ba0.tar.gz
Merge pull request #4996 from psychomario/cupstestppdbof
cupstestppd Buffer Overflow
Diffstat (limited to 'systemv')
-rw-r--r--systemv/cupstestppd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c
index dbce71865..9344c51ee 100644
--- a/systemv/cupstestppd.c
+++ b/systemv/cupstestppd.c
@@ -923,7 +923,7 @@ main(int argc, /* I - Number of command-line args */
int junkint; /* Temp integer */
- if (sscanf(attr->value, "(%[^)])%d", junkstr, &junkint) != 2)
+ if (sscanf(attr->value, "(%254[^)\n])%d", junkstr, &junkint) != 2)
{
if (verbose >= 0)
{