hpmud_get_uri_model dies on hp://ip:port uri
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
hplip 3.11.1:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb774d6f0 (LWP 15019)]
0xb7db493c in hpmud_get_uri_model (uri=0xbfffffab "hp://192.
428 for (i=0; (p[i] != '?') && (i < buf_size); i++)
DEVICE_URI was just:
[Job 196073] envp[22]
and it iterates over buffer and never finds "?" character.
That also brings another question - this uri doesn't have "model" name which is hpmud_get_
Ok, figured out that uri should be "hp:/net/ HP_LaserJet_ Professional_ M1212nf_ MFP?ip= 192.168. 44.9" for my case.
hplip shouldn't segfault on previously used uri anyway.