Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Aug 25, 2025

A recent clang change started generating this warning/error:

test_pthread_malloc (test_browser.browser64.test_pthread_malloc) ... /usr/local/google/home/sbc/dev/wasm/emscripten/test/pthread/test_pthread_malloc.c:19:21: error: allocation of insufficient size '4' for type 'long' with size '8'
      [-Werror,-Walloc-size]
   19 |     mem[i] = (long*)malloc(4);
      |                     ^
1 error generated.

Also simplify the test a little.

A recent clang change started generating this warning/error:

```
test_pthread_malloc (test_browser.browser64.test_pthread_malloc) ... /usr/local/google/home/sbc/dev/wasm/emscripten/test/pthread/test_pthread_malloc.c:19:21: error: allocation of insufficient size '4' for type 'long' with size '8'
      [-Werror,-Walloc-size]
   19 |     mem[i] = (long*)malloc(4);
      |                     ^
1 error generated.
```

Also simplify the test a little.
@sbc100 sbc100 requested a review from dschuff August 25, 2025 23:55
@juj juj merged commit 02264e0 into emscripten-core:main Aug 26, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants