File: dlmalloc_test_large.c

package info (click to toggle)
emscripten 3.1.69%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 121,860 kB
  • sloc: ansic: 636,110; cpp: 425,974; javascript: 78,401; python: 58,404; sh: 49,154; pascal: 5,237; makefile: 3,366; asm: 2,415; lisp: 1,869
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
  uintptr_t sbrk0 = (uintptr_t)sbrk(0);
  printf("%p ", malloc(0x10000000u));
  printf("%p ", malloc(0x80000000u));
  printf("%p ", malloc(0xF0000000u));
  printf("%d\n", (int)(sbrk0 == (uintptr_t)sbrk(0)));
}