CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 12:55:26 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/abseil/abseil-cpp.git
etag: W/"98c4bd97f10d96a61fabb6ac7a6b1089"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=q8NjQXO8MoAwKoXRz3Cc3C8v0pNd67Yyw6XKwEtgoYbbR8SeSIjj0Ny%2FzUyht506nKxLOUl%2FwM5zdlZg2UPwwEetZ%2Bj9zXdXyqIHTI4B6XR4b8nZHNQmdL%2FClXxr%2BTwqG8HicbqIazlrUz9YHYmOH1GsYTWt0HtDAsxdrAxE5PWSuJ6gVhablrNBikgyz9CS8q7pNDiXiEOkilCypx%2BQTAzDkSehiJdcLv7rLmxYezS%2Bbudeo5zI0rcOTa%2FHBuBwbq5RXGGDwdYy5JkAKZRqKg%3D%3D--XKtzYHGIWIiQ331L--6fKG0u13w8OG6%2Fpzusp8Vw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1306663676.1752929725; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 12:55:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 12:55:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 878C:134C64:783B99:9D5B50:687B95BD
Fix potential integer overflow in hash container create/resize · abseil/abseil-cpp@5a0e2cb · GitHub
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set.cc
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set.h
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set_test.cc
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit 5a0e2cb
Fix potential integer overflow in hash container create/resize
The sized constructors, reserve(), and rehash() methods of
absl::{flat,node}_hash_{set,map} did not impose an upper bound on
their size argument. As a result, it was possible for a caller to pass
a very large size that would cause an integer overflow when computing
the size of the container's backing store. Subsequent accesses to the
container might then access out-of-bounds memory.
The fix is in two parts:
1) Update max_size() to return the maximum number of items that can be
stored in the container
2) Validate the size arguments to the constructors, reserve(), and
rehash() methods, and abort the program when the argument is invalid
We've looked at uses of these containers in Google codebases like
Chrome, and determined this vulnerability is likely to be difficult to
exploit. This is primarily because container sizes are rarely
attacker-controlled.
The bug was discovered by Dmitry Vyukov <dvyukov@google.com>.
PiperOrigin-RevId: 718841870
Change-Id: Ic09dc9de140a35dbb45ab9d90f58383cf2de82861 parent 5f8d605 commit 5a0e2cbCopy full SHA for 5a0e2cb
File tree
Expand file treeCollapse file tree
3 files changed
+38
-1
lines changedFilter options
- absl/container/internal
Expand file treeCollapse file tree
3 files changed
+38
-1
lines changedabsl/container/internal/raw_hash_set.cc
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set.cc+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
661 | 662 |
| |
662 | 663 |
| |
663 | 664 |
| |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
664 | 669 |
| |
665 | 670 |
| |
666 | 671 |
|
absl/container/internal/raw_hash_set.h
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set.h+25-1Lines changed: 25 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1226 | 1226 |
| |
1227 | 1227 |
| |
1228 | 1228 |
| |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1229 | 1232 |
| |
1230 | 1233 |
| |
1231 | 1234 |
| |
| |||
1544 | 1547 |
| |
1545 | 1548 |
| |
1546 | 1549 |
| |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
1547 | 1559 |
| |
1548 | 1560 |
| |
1549 | 1561 |
| |
| |||
2645 | 2657 |
| |
2646 | 2658 |
| |
2647 | 2659 |
| |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
2648 | 2664 |
| |
2649 | 2665 |
| |
2650 | 2666 |
| |
| |||
2917 | 2933 |
| |
2918 | 2934 |
| |
2919 | 2935 |
| |
2920 |
| - | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2921 | 2939 |
| |
2922 | 2940 |
| |
2923 | 2941 |
| |
| |||
3376 | 3394 |
| |
3377 | 3395 |
| |
3378 | 3396 |
| |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
3379 | 3400 |
| |
3380 | 3401 |
| |
3381 | 3402 |
| |
| |||
3388 | 3409 |
| |
3389 | 3410 |
| |
3390 | 3411 |
| |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
3391 | 3415 |
| |
3392 | 3416 |
| |
3393 | 3417 |
| |
|
absl/container/internal/raw_hash_set_test.cc
Copy file name to clipboardExpand all lines: absl/container/internal/raw_hash_set_test.cc+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3737 | 3737 |
| |
3738 | 3738 |
| |
3739 | 3739 |
| |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
3740 | 3748 |
| |
3741 | 3749 |
| |
3742 | 3750 |
| |
|
You can’t perform that action at this time.
0 commit comments