changeset f56816facd25 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=f56816facd25
description:
util: Fix stack corruption in the m5 util
The number of arguments specified when calling parse_int_args() in
do_exit() is incorrect. This leads to stack corruption since it causes
writes past the end of the ints array.
diffstat:
util/m5/m5.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 35d4879ad7c2 -r f56816facd25 util/m5/m5.c
--- a/util/m5/m5.c Mon Jan 07 16:56:36 2013 -0500
+++ b/util/m5/m5.c Mon Jan 07 16:56:37 2013 -0500
@@ -130,7 +130,7 @@
usage();
uint64_t ints[1];
- parse_int_args(argc, argv, ints, 2);
+ parse_int_args(argc, argv, ints, 1);
m5_exit(ints[0]);
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev