Bug 616067 - system-config-users crashes or freezes if large number entered to uid and gid
Summary: system-config-users crashes or freezes if large number entered to uid and gid
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-users
Version: rawhide
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-19 15:11 UTC by Nils Philippsen
Modified: 2010-07-20 16:36 UTC (History)
4 users (show)

Fixed In Version: system-config-users-1.2.101-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of: 609832
Environment:
Last Closed: 2010-07-20 16:36:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nils Philippsen 2010-07-19 15:11:32 UTC
+++ This bug was initially created as a clone of Bug #609832 +++

Description of problem:
When I enter a large number for UID when creating users (example 4294967296 - which is the maximum number by gui) s-c-users crashes. 

When creating a group with very large GID s-c-users freezes.

** ERROR **: lu_value_get_id(): value 4294967296 out of range
aborting...
/usr/share/system-config-users/system-config-users: line 4: 12766 Aborted                 (core dumped) /usr/bin/python2 /usr/share/system-config-users/system-config-users.py


Version-Release number of selected component (if applicable):
system-config-users-1.2.94-1.1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. launch s-c-users + enter root passwd
2. add user
3. add user name, password and select own UID as 4294967296
  
Actual results:
Crash

Expected results:
Error msg

Comment 1 Nils Philippsen 2010-07-19 15:53:19 UTC
commit edb7caacd08bdc4ff994ea43fc5c4b113072151f
Author: Nils Philippsen <nils>
Date:   Mon Jul 19 17:20:03 2010 +0200

    enforce uids, gids fitting in id_t datatype (#616067)

    also clamp uid, gid to permitted value range in UI

Comment 2 Nils Philippsen 2010-07-20 16:36:59 UTC
fixed in system-config-users-1.2.101-1.fc14


Note You need to log in before you can comment on or make changes to this bug.