aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/binary_module_SUITE.erl
diff options
context:
space:
mode:
authorMike Sassak <[email protected]>2013-09-13 16:37:50 -0700
committerMike Sassak <[email protected]>2013-09-20 19:22:59 -0700
commit17f6fd613e8b7039526fbb063c6751fc0c2008c3 (patch)
treee942e9547298ff895b8b6d4aaf74bbe3dee1f4c9 /lib/stdlib/test/binary_module_SUITE.erl
parent589a9ed126d205007e79c22053d1b156a383d99f (diff)
downloadotp-17f6fd613e8b7039526fbb063c6751fc0c2008c3.tar.gz
otp-17f6fd613e8b7039526fbb063c6751fc0c2008c3.tar.bz2
otp-17f6fd613e8b7039526fbb063c6751fc0c2008c3.zip
Check all pattern arguments passed to binary:matches/2
Including an empty binary as one of multiple patterns passed to binary:matches/2 would crash BEAM with: "Cannot reallocate 1342177280 bytes of memory (of type "tmp")". This ensures each pattern is valid before trying to match.
Diffstat (limited to 'lib/stdlib/test/binary_module_SUITE.erl')
0 files changed, 0 insertions, 0 deletions