improve OOM situation handling

Bug #657613 reported by Vasily Kulikov on 2010-10-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
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.

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

Other bug subscribers

Patches