Bug 13550 - control-panel writes out of bounds
control-panel writes out of bounds
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: control-panel (Show other bugs)
6.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-06 16:47 EDT by Michal Jaegermann
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-07-06 16:51:18 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)
fix to bad allocation size bug in control-panel (728 bytes, patch)
2000-07-06 16:51 EDT, Michal Jaegermann
no flags Details | Diff

  None (edit)
Description Michal Jaegermann 2000-07-06 16:47:13 EDT
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@harddata.com
Comment 1 Michal Jaegermann 2000-07-06 16:51:17 EDT
Created attachment 918 [details]
fix to bad allocation size bug in control-panel
Comment 2 Nalin Dahyabhai 2000-07-06 17:24:46 EDT
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.

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