Bug 1434 - ether_ntoa doesn't use static buffer for return value
Summary: ether_ntoa doesn't use static buffer for return value
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
(Show other bugs)
Version: 5.2
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-03-05 23:35 UTC by stanonik
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-15 22:11:20 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description stanonik 1999-03-05 23:35:52 UTC
ether_ntoa returns junk because it doesn't declare its
buffer as static, so the return value is overwritten by
the next call of any kind  Adding static fixes the
problem

In glibc/inet/ether_ntoa.c, add static

char *
ether_ntoa (const struct ether_addr *addr)
{
  static char asc[18];

  return ether_ntoa_r (addr, asc);
}

Comment 1 Jeff Johnson 1999-05-15 22:11:59 UTC
This problem has been fixed in glibc-2.1.1-6.


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