Skip to content
Snippets Groups Projects
Commit c97f56cd authored by Yasumasa Suenaga's avatar Yasumasa Suenaga
Browse files

8266172: -Wstringop-overflow happens in vmError.cpp

Reviewed-by: dholmes, stuefe
parent 43ad24fe
No related branches found
No related tags found
No related merge requests found
......@@ -1770,8 +1770,8 @@ static void crash_with_sigfpe() {
// crash with sigsegv at non-null address.
static void crash_with_segfault() {
char* const crash_addr = (char*)VMError::segfault_address;
*crash_addr = 'X';
int* crash_addr = reinterpret_cast<int*>(VMError::segfault_address);
*crash_addr = 1;
} // end: crash_with_segfault
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment