Bug 616067

Summary: system-config-users crashes or freezes if large number entered to uid and gid
Product: [Fedora] Fedora Reporter: Nils Philippsen <nphilipp>
Component: system-config-usersAssignee: Nils Philippsen <nphilipp>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhideCC: mitr, mvadkert, nphilipp, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-users-1.2.101-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 609832 Environment:
Last Closed: 2010-07-20 16:36:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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