* [PATCH] rtcwake: fix crash (invalid free)
@ 2011-10-13 12:40 Petr Uzel
2011-10-17 9:15 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Petr Uzel @ 2011-10-13 12:40 UTC (permalink / raw)
To: util-linux
~ $ rtcwake -d X -s 10
*** glibc detected *** rtcwake: munmap_chunk(): invalid pointer: 0x00007fff839253c3 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x733b6)[0x7f582677a3b6]
rtcwake[0x4022d5]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f5826725bfd]
rtcwake[0x4016b9]
======= Memory map: ========
<SNIP>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
---
sys-utils/rtcwake.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c
index 2f17400..591ef8b 100644
--- a/sys-utils/rtcwake.c
+++ b/sys-utils/rtcwake.c
@@ -495,7 +495,6 @@ int main(int argc, char **argv)
strcpy(new_devname, "/dev/");
strcat(new_devname, devname);
- free(devname);
devname = new_devname;
}
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rtcwake: fix crash (invalid free)
2011-10-13 12:40 [PATCH] rtcwake: fix crash (invalid free) Petr Uzel
@ 2011-10-17 9:15 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-10-17 9:15 UTC (permalink / raw)
To: Petr Uzel; +Cc: util-linux
On Thu, Oct 13, 2011 at 02:40:31PM +0200, Petr Uzel wrote:
> ~ $ rtcwake -d X -s 10
> *** glibc detected *** rtcwake: munmap_chunk(): invalid pointer: 0x00007fff839253c3 ***
> ======= Backtrace: =========
> /lib64/libc.so.6(+0x733b6)[0x7f582677a3b6]
> rtcwake[0x4022d5]
> /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f5826725bfd]
> rtcwake[0x4016b9]
> ======= Memory map: ========
> <SNIP>
>
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
> ---
> sys-utils/rtcwake.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-17 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13 12:40 [PATCH] rtcwake: fix crash (invalid free) Petr Uzel
2011-10-17 9:15 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).