News for hackers. Stuff that matters.
Re:Libxml2's "no security embargoes" policy by vbezhenar on Thursday June 26, 2025 @07:51AM (#44386490)
It's very easy to make malloc return NULL:

  % ulimit -v 80000
  
  % cat test.c
  #include <stdio.h>
  #include <stdlib.h>
  
  int main(void) {
    char *p = malloc(100'000'000);
    printf("%p\n", p);
  }
  
  % cc test.c
  
  % ./a.out
  (nil)

There are no comments on this comment yet.