-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from google/oss_fixes
strings: fix invalid access with UTF8 verification, ensure absl::string_view compatibility
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Force internal versions of std classes per | ||
# https://abseil.io/docs/cpp/guides/options | ||
diff --git a/absl/base/options.h b/absl/base/options.h | ||
index 230bf1e..6e1b9e5 100644 | ||
--- a/absl/base/options.h | ||
+++ b/absl/base/options.h | ||
@@ -100,7 +100,7 @@ | ||
// User code should not inspect this macro. To check in the preprocessor if | ||
// absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY. | ||
|
||
-#define ABSL_OPTION_USE_STD_ANY 2 | ||
+#define ABSL_OPTION_USE_STD_ANY 0 | ||
|
||
|
||
// ABSL_OPTION_USE_STD_OPTIONAL | ||
@@ -127,7 +127,7 @@ | ||
// absl::optional is a typedef of std::optional, use the feature macro | ||
// ABSL_USES_STD_OPTIONAL. | ||
|
||
-#define ABSL_OPTION_USE_STD_OPTIONAL 2 | ||
+#define ABSL_OPTION_USE_STD_OPTIONAL 0 | ||
|
||
|
||
// ABSL_OPTION_USE_STD_STRING_VIEW | ||
@@ -154,7 +154,7 @@ | ||
// absl::string_view is a typedef of std::string_view, use the feature macro | ||
// ABSL_USES_STD_STRING_VIEW. | ||
|
||
-#define ABSL_OPTION_USE_STD_STRING_VIEW 2 | ||
+#define ABSL_OPTION_USE_STD_STRING_VIEW 0 | ||
|
||
// ABSL_OPTION_USE_STD_VARIANT | ||
// | ||
@@ -180,7 +180,7 @@ | ||
// absl::variant is a typedef of std::variant, use the feature macro | ||
// ABSL_USES_STD_VARIANT. | ||
|
||
-#define ABSL_OPTION_USE_STD_VARIANT 2 | ||
+#define ABSL_OPTION_USE_STD_VARIANT 0 | ||
|
||
|
||
// ABSL_OPTION_USE_INLINE_NAMESPACE |
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