Home | History | Annotate | Line # | Download | only in util
check-malloc-errs revision 1.1
      1  1.1  christos #! /bin/sh
      2  1.1  christos # Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
      3  1.1  christos #
      4  1.1  christos # Licensed under the OpenSSL license (the "License").  You may not use
      5  1.1  christos # this file except in compliance with the License.  You can obtain a copy
      6  1.1  christos # in the file LICENSE in the source distribution or at
      7  1.1  christos # https://www.openssl.org/source/license.html
      8  1.1  christos 
      9  1.1  christos (
     10  1.1  christos     pcregrep -rnM 'OPENSSL_.?alloc.*\n.*if.*NULL.*\n.*return'  crypto ssl
     11  1.1  christos     pcregrep -rnM 'if.*OPENSSL_.?alloc.*NULL.*\n.*.*return' crypto ssl
     12  1.1  christos ) | tee /tmp/out$$
     13  1.1  christos X=0
     14  1.1  christos test -s /tmp/out$$ && X=1
     15  1.1  christos rm /tmp/out$$
     16  1.1  christos exit $X
     17