hpijs.cpp fprintf segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Medium
|
Unassigned | ||
hplip (Debian) |
Fix Released
|
Unknown
|
Bug Description
http://
From: opter_l <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#542640: hpijs: segfault can't use my HP Deskjet 5940
Date: Fri, 21 Aug 2009 22:58:00 +0200
Hi,
I have corrected the segfault in hpijs :
--- hplip-2.
+++ hplip-2.
@@ -58,7 +58,7 @@
if ((n = vsnprintf(buf, 256, fmt, args)) == -1)
buf[255] = 0; /* output was truncated */
- fprintf(stderr, buf);
+ fputs(buf, stderr);
syslog(
fflush(stderr);
The source of the segfault is in hpijs_set_cb() :
320 else
321 bug("unable to set key=%s, value=%s\n", key, svalue);
Where key and svalue are "user" input string from gs. You can see this in
my foomatic-rip log line 103 : "-sOutputFile=
fprintf to segfault...
visibility: | private → public |
Changed in hplip (Debian): | |
status: | Unknown → New |
Changed in hplip (Debian): | |
status: | New → Confirmed |
Changed in hplip (Debian): | |
status: | Confirmed → Fix Released |
Changed in hplip: | |
importance: | Undecided → Medium |
In the latest release this code section is no longer used.