Bug 473491 - unchecked malloc
Summary: unchecked malloc
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ftp
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-28 20:10 UTC by mpachary
Modified: 2014-11-09 22:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-01 12:41:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description mpachary 2008-11-28 20:10:20 UTC
Description of problem:

unchecked malloc
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

 ./netkit-ftp-0.17/ftp/ruserpass.c:139:					*aname = malloc((unsigned) strlen(tokval) + 1); ### return value of malloc, *aname, passed to strcpy without checking.  
 ./netkit-ftp-0.17/ftp/ruserpass.c:160:				*apass = malloc((unsigned) strlen(tokval) + 1); ### return value of malloc, *apass, passed to strcpy without checking.


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