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