Bug 1921 - casting problem in elf/cache.c
Summary: casting problem in elf/cache.c
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 minor
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 14:44 UTC by Heiko Nardmann
Modified: 2016-05-17 18:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Nardmann 2005-11-24 14:44:57 UTC
In file elf/cache.c there is a casting which my lint tool complains about:  
  
186	  cache_new = (struct cache_file_new *) ((void *)cache + offset);  
  
Casting to (void *) and adding an offset is not really clear. Shouldn't it be  
better a cast to (char *) ?
Comment 1 Jakub Jelinek 2005-11-24 14:47:43 UTC
glibc requires GCC and uses many GCC extensions.  void * arithmetic is one of
them.