-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add non-copying string and byte getters on a TLV reader. (#9249)
* Add non-copying string and byte getters on a TLV reader. We have existing callsites that are doing what GetString/GetBytes say to do and call GetLength() to decide how big a buffer to allocate. But the return value from GetLength() doesn't have to be sane, so we end up allocating buffers with attacker-controlled sizes. The changes here are: 1) Add ContiguousBufferTLVReader that is always backed by a single buffer, so it can guarantee that the in-place view makes sense. 2) Use the new class in setup payload parsers, fixing various bugs in the process. Fixes #9009 * Addressing review comments * More review comments * Bump Darwin build job bootstrap timeout to match other Darwin jobs. 10 minutes keeps timing out.
- Loading branch information
1 parent
1beb77f
commit 1964793
Showing
7 changed files
with
313 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -242,7 +242,7 @@ jobs: | |
# uses: github/codeql-action/analyze@v1 | ||
build_darwin: | ||
name: Build on Darwin (clang, python_lib) | ||
timeout-minutes: 60 | ||
timeout-minutes: 75 | ||
|
||
env: | ||
BUILD_TYPE: clang | ||
|
@@ -266,7 +266,7 @@ jobs: | |
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'` | ||
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* . | ||
- name: Bootstrap | ||
timeout-minutes: 10 | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
- name: Uploading bootstrap logs | ||
uses: actions/upload-artifact@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.