[PATCH] add udi and some more checks to libhal

Danny Kukawka danny.kukawka at web.de
Sat Nov 24 10:25:46 PST 2007


Hi,

this patch adds:
* a minimal check if a given UDI is valid (checks if the UDI starts 
with '/org/freedesktop/Hal/devices/'). This should prevent possible 
(application) crashes if a invalid UDI is send to HAL and reduce unneeded 
dbus calls.
* some more parameter checks (for LibHalChangeSet, keys ...)

Please review,

Danny

 libhal.c |  168 ++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 117 insertions(+), 51 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-libhal_checkUDI_addParameterChecks.diff
Type: text/x-diff
Size: 22293 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071124/0b709471/attachment-0001.diff 


More information about the hal mailing list