Skip to content

Commit f1a9df7

Browse files
authored
Make writeStackCookie() use HEAPU32 (#17648)
1 parent 1fee5d6 commit f1a9df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime_stack_check.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function writeStackCookie() {
1717
// The stack grow downwards towards _emscripten_stack_get_end.
1818
// We write cookies to the final two words in the stack and detect if they are
1919
// ever overwritten.
20-
{{{ makeSetValue('max', 0, '0x2135467', 'i32' ) }}};
21-
{{{ makeSetValue('max', 4, '0x89BACDFE', 'i32' ) }}};
20+
{{{ makeSetValue('max', 0, '0x2135467', 'u32' ) }}};
21+
{{{ makeSetValue('max', 4, '0x89BACDFE', 'u32' ) }}};
2222
#if !USE_ASAN && !SAFE_HEAP // ASan and SAFE_HEAP check address 0 themselves
2323
// Also test the global address 0 for integrity.
2424
HEAPU32[0] = 0x63736d65; /* 'emsc' */

0 commit comments

Comments
 (0)