Skip to content

Commit 1721117

Browse files
committed
string_format.h: make FormatArg final, to strongly discourage others from encountering the use-after-free bug.
1 parent da3f7c9 commit 1721117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/core/src/util/string_format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct FormatChoice<5> {};
6262
* formatting of the value as an unsigned integer.
6363
* * Otherwise the value is interpreted as anything absl::AlphaNum accepts.
6464
*/
65-
class FormatArg : public absl::AlphaNum {
65+
class FormatArg final : public absl::AlphaNum {
6666
public:
6767
template <typename T>
6868
FormatArg(T&& value,

0 commit comments

Comments
 (0)