Bug 473491

Summary: unchecked malloc
Product: [Fedora] Fedora Reporter: mpachary
Component: ftpAssignee: Jiri Skala <jskala>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aglotov, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-01 12:41:25 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 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.