Bug 680 - LD_PRELOAD envvars free to lost
Summary: LD_PRELOAD envvars free to lost
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.3
: P2 enhancement
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 05:34 UTC by Michael G. Vergoz
Modified: 2005-01-19 10:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael G. Vergoz 2005-01-19 05:34:41 UTC
LD_PRELOAD can load some additionals library. process_envvars() will add these lib into preloadlist. 
preloadlist will be reused into dl_main(). A buffer list will be allocated with strdupa(). This buffer is not 
freeED after strsep().
elf/rtld.c +1050 on 2.3.3.
I advise to free list just after the while & before HP_TIMING_NOW().

it's nothing (i know) :)
Comment 1 Andreas Schwab 2005-01-19 10:26:27 UTC
strdupa uses alloca.