summaryrefslogtreecommitdiff
path: root/absl/abseil.podspec.gen.py
diff options
context:
space:
mode:
authorGravatar Derek Mauro <761129+derekmauro@users.noreply.github.com>2024-04-08 16:32:39 -0400
committerGravatar GitHub <noreply@github.com>2024-04-08 16:32:39 -0400
commitd7aaad83b488fd62bd51c81ecf16cd938532cc0a (patch)
treeb7787164b428ec7b9dc8168cfe8d5363654e2600 /absl/abseil.podspec.gen.py
parent2f9e432cce407ce0ae50676696666f33a77d42ac (diff)
Abseil LTS Branch, Jan 2024, Patch 2 (#1650)20240116.2
* Prevent overflow in absl::CEscape() Strings larger than 1 GiB on a platform with a 32-bit size_t could potentially overflow size_t in `CEscapedLength()`, resulting in an undersized allocation. The resulting write in `CEscapeAndAppendInternal()` would then write beyond the bounds of the output buffer. A second overflow, where the calculated escaped length is added to the size of the string being appended to, is also fixed. In both cases the program will now abort prior to the overflow. Credit goes to Ronald Crane (Zippenhop LLC) for reporting this issue. PiperOrigin-RevId: 607019573 Change-Id: I97bf246cde96102a793d2db49446cccae08abf59 * Workaround for NVIDIA C++ compiler being unable to parse variadic expansions in range of range-based for loop Fixes: #1629 PiperOrigin-RevId: 611131201 Change-Id: I787731e00207b544ee16055e6e0d323a5094a433 * Fix OSX support with CocoaPods and Xcode 15 PiperOrigin-RevId: 615090942 Change-Id: I7cc20a0129dcfbbddedd9e6d816bb6234bff14b3 * PR #1643: add xcprivacy to all subspecs Imported from GitHub PR #1643 Addressing comments at #1604 Add a xcprivacy subspec and have all other subspecs depend on it (option 1) Didn't going with option 3 because there are several levels of subspecs in abseil podspec, it's difficult to track whether all of them directly or indirectly depends on abseil/base/config or ensure they will continue to depend on it. Example of generated podsped: https://gist.github.com/HannahShiSFB/15d8fb6aa637f2781b7be4218d080f11 Merge 4405cdf into 4539c54 Merging this change closes #1643 COPYBARA_INTEGRATE_REVIEW=#1643 from HannahShiSFB:privacy-manifests 4405cdf PiperOrigin-RevId: 616914674 Change-Id: If56d5a4f1a7cc6f9fac7a2d8e95b55d140e645fc
Diffstat (limited to 'absl/abseil.podspec.gen.py')
-rwxr-xr-xabsl/abseil.podspec.gen.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/absl/abseil.podspec.gen.py b/absl/abseil.podspec.gen.py
index c83edbfe..cbf7cb42 100755
--- a/absl/abseil.podspec.gen.py
+++ b/absl/abseil.podspec.gen.py
@@ -44,9 +44,14 @@ Pod::Spec.new do |s|
'ALWAYS_SEARCH_USER_PATHS' => 'NO',
}
s.ios.deployment_target = '9.0'
- s.osx.deployment_target = '10.10'
+ s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
+ s.subspec 'xcprivacy' do |ss|
+ ss.resource_bundles = {
+ ss.module_name => 'PrivacyInfo.xcprivacy',
+ }
+ end
"""
# Rule object representing the rule of Bazel BUILD.
@@ -191,6 +196,12 @@ def write_podspec_rule(f, rule, depth):
name = get_spec_name(dep.replace(":", "/"))
f.write("{indent}{var}.dependency '{dep}'\n".format(
indent=indent, var=spec_var, dep=name))
+ # Writes dependency to xcprivacy
+ f.write(
+ "{indent}{var}.dependency '{dep}'\n".format(
+ indent=indent, var=spec_var, dep="abseil/xcprivacy"
+ )
+ )
def write_indented_list(f, leading, values):