improve OOM situation handling
Bug #657613 reported by
Vasily Kulikov
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: | added: patch |
To post a comment you must log in.