* Bram Moolenaar <[email protected]> [2016-02-28 15:21 +0100]:
>
> Patch 7.4.1446
> Problem: Crash when using json_decode().
> Solution: Terminate string with a NUL byte.
> Files: src/json.c
Building this with LC_ALL=C LANG=C LANGUAGE=C gives:
...
Executed 33 tests
4 FAILED:
Found errors in Test_js_decode():
function Test_js_decode line 8: Expected 's¢c¿g¿' but got ''
Found errors in Test_js_encode():
function Test_js_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
Found errors in Test_json_decode():
function Test_json_decode line 8: Expected 's¢c¿g¿' but got ''
function Test_json_decode line 9: Expected '🠣' but got '¿'
function Test_json_decode line 10: Expected '< ' but got '¿? '
Found errors in Test_json_encode():
function Test_json_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
function Test_json_encode line 9: Expected '🠣' but got '¿'
function Test_json_encode line 10: Expected '< ' but got '¿? '
>From test_alot.vim:
Found errors in Test_js_decode():
function Test_js_decode line 8: Expected 's¢c¿g¿' but got ''
Found errors in Test_js_encode():
function Test_js_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
Found errors in Test_json_decode():
function Test_json_decode line 8: Expected 's¢c¿g¿' but got ''
function Test_json_decode line 9: Expected '🠣' but got '¿'
function Test_json_decode line 10: Expected '< ' but got '¿? '
Found errors in Test_json_encode():
function Test_json_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
function Test_json_encode line 9: Expected '🠣' but got '¿'
function Test_json_encode line 10: Expected '< ' but got '¿? '
Test results:
>From test_alot.vim:
Found errors in Test_js_decode():
function Test_js_decode line 8: Expected 's¢c¿g¿' but got ''
Found errors in Test_js_encode():
function Test_js_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
Found errors in Test_json_decode():
function Test_json_decode line 8: Expected 's¢c¿g¿' but got ''
function Test_json_decode line 9: Expected '🠣' but got '¿'
function Test_json_decode line 10: Expected '< ' but got '¿? '
Found errors in Test_json_encode():
function Test_json_encode line 8: Expected '"s¢c¿g¿"' but got '"s¢c¿g¿"'
function Test_json_encode line 9: Expected '🠣' but got '¿'
function Test_json_encode line 10: Expected '< ' but got '¿? '
TEST FAILURE
Elimar
--
.~.
/V\ L I N U X
/( )\ >Phear the Penguin<
^^-^^
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.