projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf9cf7
)
[canaries] Removed accidental hardcode
author
Alexis Christoforides
<alexis@thenull.net>
Fri, 5 Dec 2014 20:53:55 +0000
(15:53 -0500)
committer
Alexis Christoforides
<alexis@thenull.net>
Fri, 5 Dec 2014 20:53:55 +0000
(15:53 -0500)
mono/metadata/sgen-gc.h
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-gc.h
b/mono/metadata/sgen-gc.h
index eaab6399b03f374cfc1b0b54b6a2286d4f063a65..c8f769956cd9e3b5d19d7232fe2d5022563c7a07 100644
(file)
--- a/
mono/metadata/sgen-gc.h
+++ b/
mono/metadata/sgen-gc.h
@@
-1221,7
+1221,7
@@
gboolean nursery_canaries_enabled (void) MONO_INTERNAL;
char* canary_ptr = (char*) (addr) + sgen_safe_object_get_size_unaligned ((MonoObject *) (addr)); \
if (!CANARY_VALID(canary_ptr)) { \
char canary_copy[CANARY_SIZE +1]; \
- strncpy (canary_copy, canary_ptr,
8);
\
+ strncpy (canary_copy, canary_ptr,
CANARY_SIZE);
\
canary_copy[CANARY_SIZE] = 0; \
g_error ("CORRUPT CANARY:\naddr->%p\ntype->%s\nexcepted->'%s'\nfound->'%s'\n", (char*) addr, ((MonoObject*)addr)->vtable->klass->name, CANARY_STRING, canary_copy); \
} }