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

Upstream merge 2025 01 17 #2125

Merged
merged 7 commits into from
Jan 21, 2025
Merged

Conversation

justsmth
Copy link
Contributor

@justsmth justsmth commented Jan 17, 2025

Description of changes:

Merging from Upstream considering commits between
google/boringssl@36e85b6 (Mar 22, 2024) and google/boringssl@89f0977 (April 10, 2024).

Call-outs:

See internal document as well as "AWS-LC" notes inserted in some of the commit messages for additions/deviations from the upstream commit.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

Adam Langley and others added 7 commits January 17, 2025 11:01
See https://developer.apple.com/documentation/bundleresources/privacy_manifest_files

Change-Id: I12e485ce294ead6a6cc16018e7e2adbb1efeddec
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67487
Auto-Submit: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
(cherry picked from commit a2ef200d79158613f5a312eb5a13ddceae518bfb)
We're using it in parts of EVP already and this is much more readable.

Change-Id: I42f30b83331cafdabd4f5d995b61176458e906bc
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67567
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>

(cherry picked from commit b171749734c438994526096c2150e9baf9d87313)
Noncharacters are weird. They're code points and generally expected to
pass through string APIs and such, but they're also not meant to be used
for "open interchange". We reject them, while most Unicode APIs accept
them. They're public API nowadays, so document this.

Change-Id: I56aa436ae954b591d9a00b6560617e1ad5c26d95
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67568
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>

(cherry picked from commit 27e09a3277d17718902afca16cce7e2fb9a82ec2)
The docs still describe the old implementation, but our PRNG has changed
drastically since then.

Change-Id: I51c34833a364a1d6bd70cf5d3b6cfb87b4aa06e7
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67569
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>

(cherry picked from commit ec6cb3e3a016a8e7ffee42d589d423e6057f21bf)
…IMPL.`

Change-Id: I8340cf9259de72792a01049ecc36997233887006
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67607
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
(cherry picked from commit 68c6fd8943ffba4e5054ff3a9befa8882b6b226a)
Bug: chromium:40925630
Change-Id: Ide72960600747f5ce9a9213a9103510fee3e3806
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67527
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>

(cherry picked from commit f94f3ed3965ea033001fb9ae006084eee408b861)
This makes me sad, but strdup may be more trouble than is worth it?
Being not in C (until C23) and only a (by POSIX standards) recent
addition to POSIX means a lot of folks seem to make it unnecessarily
hard to use:

- MSVC adds a deprecation warning that we have to suppress

- glibc gates it on feature macros; we just don't notice because we
  already have to work around their bad behavior for pthread_rwlock

- musl gates it on feature macros, which was one of the things that
  tripped cl/583161936

Given we only want to use strdup in one file (err.c, which wants to
avoid OPENSSL_malloc), a small reimplementation is probably not the end
of the world.

While I'm here, we can actually make OPENSSL_strdup's implementation a
little simpler.

Change-Id: I4e6c743b3104a67357d7d527c178c615de6bc844
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/64047
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
(cherry picked from commit 89f097740e6376521926eb56a61b25f639c473ac)
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.93%. Comparing base (68e861e) to head (f4a4864).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2125   +/-   ##
=======================================
  Coverage   78.93%   78.93%           
=======================================
  Files         610      610           
  Lines      105152   105151    -1     
  Branches    14902    14902           
=======================================
+ Hits        83001    83005    +4     
+ Misses      21497    21496    -1     
+ Partials      654      650    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justsmth justsmth changed the title [DRAFT] Upstream merge 2025 01 17 Upstream merge 2025 01 17 Jan 21, 2025
@justsmth justsmth marked this pull request as ready for review January 21, 2025 15:46
@justsmth justsmth requested a review from a team as a code owner January 21, 2025 15:46
@justsmth justsmth merged commit 46e9e53 into aws:main Jan 21, 2025
123 of 126 checks passed
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.

7 participants