Skip to content
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

Fix the issue of reserving string capacity with invalid size #4910

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

yuying-y
Copy link
Contributor

@yuying-y yuying-y commented Feb 13, 2025

This issue caused the app to crash when a network error is encountered and the content_length used for reserving string capacity is -1. Also added checks for the bytes size for the Write() function. Verified the fix on Linux.

b/394975919

Change-Id: I2d8cbf63680781704c60f8e8702ccfcff751a7fc

This issue caused the app to crash when a network error is encountered
and content_length is -1. Also added checks for the bytes size for the
Write() function.

b/394975919

Change-Id: I2d8cbf63680781704c60f8e8702ccfcff751a7fc
@yuying-y yuying-y merged commit ec12ecc into youtube:25.lts.1+ Feb 14, 2025
291 of 295 checks passed
@yuying-y yuying-y added the cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch label Feb 14, 2025
yuying-y added a commit to yuying-y/cobalt that referenced this pull request Feb 14, 2025
…ty with invalid size

This issue caused the app to crash when a network error is
encountered and the content_length used for reserving string
capacity is -1. Also added checks for the bytes size for the
Write() function. Verified the fix on Linux.

This is a manual cherry-pick from youtube#4910,
since adding the label cp-24.lts.1+ on Github didn't create
the cherry-pick CL automatically.

b/394975919

Change-Id: I9a05ade9d9bb5a83943fb5239ac43d9c1d60ead8
yuying-y added a commit to yuying-y/cobalt that referenced this pull request Feb 14, 2025
…ty with invalid size

This issue caused the app to crash when a network error is
encountered and the content_length used for reserving string
capacity is -1. Also added checks for the bytes size for the
Write() function. Verified the fix on Linux.

This is a manual cherry-pick from youtube#4910,
since adding the label cp-24.lts.1+ on Github didn't create
the cherry-pick CL automatically.

b/394975919

Change-Id: I9a05ade9d9bb5a83943fb5239ac43d9c1d60ead8
oxve pushed a commit that referenced this pull request Feb 14, 2025
#4914)

… invalid size

This issue caused the app to crash when a network error is encountered
and the content_length used for reserving string capacity is -1. Also
added checks for the bytes size for the Write() function. Verified the
fix on Linux.

This is a manual cherry-pick from
#4910, since adding the label
cp-24.lts.1+ on Github didn't create the cherry-pick CL automatically.

b/394975919

Change-Id: I9a05ade9d9bb5a83943fb5239ac43d9c1d60ead8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants