diff options
author | Björn Gustavsson <[email protected]> | 2011-09-02 13:27:41 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-09-03 08:29:21 +0200 |
commit | 12ebe3823b01be256b0834956bc2e117129b32e4 (patch) | |
tree | 2d61d77d8bbd4e3d97b06813590d41fb6bb25c58 /lib/hipe/cerl | |
parent | 9f1e455017228e8f35d82e2fe1e3c5268c2e0aa3 (diff) | |
download | otp-12ebe3823b01be256b0834956bc2e117129b32e4.tar.gz otp-12ebe3823b01be256b0834956bc2e117129b32e4.tar.bz2 otp-12ebe3823b01be256b0834956bc2e117129b32e4.zip |
erlc_SUITE: Fix arg_overflow/1 test case
In commit be8759e68b337524c056b8bb757ea68c9996d863, a buffer overflow
was fixed in erlc and the erlc_SUITE:arg_overflow/1 test case was
added. That test cases invokes erlc with 10000 -D options, which will
result in 'erl' being invoked with more than 30000 arguments.
On some platforms, the test case will fail for the wrong reason:
* 64-bit Linux kernels before 2.6.23 limit the number of arguments in
an excvp() call to 16383. (See "Number of arguments and maximum length
of one argument" in http://www.in-ulm.de/~mascheck/various/argmax/.)
* The command shell in Windows limits the size of the command line to
8191 characters.
Depending on the platform, pass a different number of -D options
to erlc. Since the size of the options does not matter for this
test case, make the options as short as possible by generating
numbers in base 36.
Diffstat (limited to 'lib/hipe/cerl')
0 files changed, 0 insertions, 0 deletions