improve OOM situation handling

Bug #657613 reported by Vasily Kulikov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: udev

add_string() returns -1 on OOM.

add_uid() and add_gid() doesn't handle this situation properly. They cast the result to unsigned int and compare the casted value with zero. Of course, (uint)-1 < 0 is false.

Tags: patch
Revision history for this message
Vasily Kulikov (segooon) wrote :
tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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