hpmud_get_uri_model dies on hp://ip:port uri

Bug #707373 reported by Arkadiusz Miśkiewicz
6
This bug affects 1 person
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.168.44.9:9100", buf=0xbfffe50d "192.168.44.9:9100", buf_size=256) at io/hpmud/hpmud.c:428
428 for (i=0; (p[i] != '?') && (i < buf_size); i++)

DEVICE_URI was just:
[Job 196073] envp[22]="DEVICE_URI=hp://192.168.44.9:9100"

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_uri_model() trying to get. Later that model is used to load data from models.dat - how is this supposed to work if this uri doesn't contain any model?

Revision history for this message
Arkadiusz Miśkiewicz (arekm) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.