Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

fix(NddService): fix NddService socket.on('data') for large input #323

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

Conversation

razorman8669
Copy link

This patch fixes NddService.server socker.on('data') so that it can handle large amounts of input without throwing SyntaxError: Unexpected end of JSON input errors.

Fixes #319

@google-cla
Copy link

google-cla bot commented Oct 10, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@razorman8669
Copy link
Author

@googlebot I fixed it.

@razorman8669 razorman8669 force-pushed the fix-#319 branch 2 times, most recently from af0a08b to f839cf6 Compare October 10, 2020 20:20
This patch fixes NddService.server socker.on('data') so that it can handle large amounts of input without throwing `SyntaxError: Unexpected end of JSON input` errors.

Fixes GoogleChromeLabs#319
@razorman8669
Copy link
Author

sorry for all the force pushes, between the CLA author rewrites to travis tooling...I was just moving too quick I guess 🤷

Anyways, I was experiencing this bug and patched it locally so I could get it working for myself. it works great with this patch. could I get a review on this?

@razorman8669
Copy link
Author

@ak239 et al, could one of you guys take a look at this and approve it. it's blocking some stuff i'm working on and I think it's a worthy contribution to the tool.

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

Successfully merging this pull request may close these issues.

Buffer overflow error about socket in NddService received data over 8192
1 participant