Bug 13550

Summary: control-panel writes out of bounds
Product: [Retired] Red Hat Linux Reporter: Michal Jaegermann <michal>
Component: control-panelAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
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: 2000-07-06 20:51:18 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:
Attachments:
Description Flags
fix to bad allocation size bug in control-panel none

Description Michal Jaegermann 2000-07-06 20:47:13 UTC
control-panel allocates 'buf' of stat_buf.st_size bytes and proceeds
to write at buf[stat_buf.st_size] location.

Attached patch fixes also a minor issue of a type conversion which
kicks in when sizeof(size_t) != sizeof(int).

I thought that I submitted that bug a long time ago but it is still
present in 3.13-1 and bugzilla claims that there are no bugs filed
against control-panel.

  Michal
  michal

Comment 1 Michal Jaegermann 2000-07-06 20:51:17 UTC
Created attachment 918 [details]
fix to bad allocation size bug in control-panel

Comment 2 Nalin Dahyabhai 2000-07-06 21:24:46 UTC
Thanks for the tip.  Some of these fixes had already been integrated into the
CVS tree, but I made another once-over the source file.