Skip to content

check input length for librnp 0.18 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

remicollet
Copy link
Contributor

To preserve extension behavior on empty input

Using librnp 0.18 without this

========DIFF========
001- bool(false)
001+ string(15) "{
002+   "keys":[]
003+ }"
     string(864) "{
       "keys":[
         {
--
========DONE========
FAIL import keys test [tests/016.phpt] 

========DIFF========
001- bool(false)
001+ string(13) ":empty input
002+ "
     bool(false)
     bool(false)
     bool(false)
--
========DONE========
FAIL Dump packets test [tests/006.phpt] 

With this PR

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :     0
Exts tested     :    17
---------------------------------------------------------------------

Number of tests :    18                18
Tests skipped   :     0 (  0.0%) --------
Tests warned    :     0 (  0.0%) (  0.0%)
Tests failed    :     0 (  0.0%) (  0.0%)
Tests passed    :    18 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :     4 seconds
=====================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant