qemu-e2k/replay
Markus Armbruster d9d3aaea0b replay: Fix dangling location bug in replay_configure()
replay_configure() pushes and pops a Location with automatic storage
duration.  Except it fails to pop when -icount parameter "rr" isn't
given.  cur_loc then points to unused stack space, and will most
likely get clobbered in short order.

Clobbered cur_loc can make loc_pop() and error_print_loc() crash or
report bogus locations.

Broken in commit 890ad55.

I didn't take the time to find a reproducer.

Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1461767349-15329-3-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
2016-04-28 08:19:20 +02:00
..
Makefile.objs replay: character devices 2016-03-15 18:23:40 +01:00
replay-char.c replay: character devices 2016-03-15 18:23:40 +01:00
replay-events.c replay: introduce block devices record/replay 2016-03-30 12:15:57 +02:00
replay-input.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
replay-internal.c
replay-internal.h replay: introduce block devices record/replay 2016-03-30 12:15:57 +02:00
replay-time.c
replay.c replay: Fix dangling location bug in replay_configure() 2016-04-28 08:19:20 +02:00