зеркало из https://github.com/mozilla/gecko-dev.git
bug 750932 - multipart delimiter check r=jduell
This commit is contained in:
Родитель
584c783c77
Коммит
2a55d19fdf
|
@ -565,7 +565,8 @@ nsMultiMixedConv::OnDataAvailable(nsIRequest *request, nsISupports *context,
|
|||
int32_t tokenLinefeed = 1;
|
||||
while ( (token = FindToken(cursor, bufLen)) ) {
|
||||
|
||||
if (*(token+mTokenLen+1) == '-') {
|
||||
if (((token + mTokenLen) < (cursor + bufLen)) &&
|
||||
(*(token + mTokenLen + 1) == '-')) {
|
||||
// This was the last delimiter so we can stop processing
|
||||
rv = SendData(cursor, LengthToToken(cursor, token));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
|
@ -129,8 +129,6 @@ skip-if = bits != 32
|
|||
[test_multipart_byteranges.js]
|
||||
[test_multipart_streamconv.js]
|
||||
[test_multipart_streamconv_missing_lead_boundary.js]
|
||||
# Bug 750932: test fails under AddressSanitizer
|
||||
fail-if = asan
|
||||
[test_nestedabout_serialize.js]
|
||||
[test_net_addr.js]
|
||||
# Bug 732363: test fails on windows for unknown reasons.
|
||||
|
|
Загрузка…
Ссылка в новой задаче