Bug 616067 - system-config-users crashes or freezes if large number entered to uid and gid
system-config-users crashes or freezes if large number entered to uid and gid
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: system-config-users (Show other bugs)
rawhide
All Linux
low Severity high
: ---
: ---
Assigned To: Nils Philippsen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-19 11:11 EDT by Nils Philippsen
Modified: 2010-07-20 12:36 EDT (History)
4 users (show)

See Also:
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 12:36:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nils Philippsen 2010-07-19 11:11:32 EDT
+++ 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 11:53:19 EDT
commit edb7caacd08bdc4ff994ea43fc5c4b113072151f
Author: Nils Philippsen <nils@redhat.com>
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 12:36:59 EDT
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.