zwoop commented on code in PR #12155:
URL: https://github.com/apache/trafficserver/pull/12155#discussion_r2025851777
##########
include/cripts/Headers.hpp:
##########
@@ -345,18 +345,20 @@ class Header
_hdr_loc = nullptr;
_bufp = nullptr;
}
- _state = nullptr;
+ _initialized = false;
}
[[nodiscard]] TSMBuffer
- BufP() const
+ BufP()
Review Comment:
Unfortunately they have to be non-const now, since this could access the
uninitialized bufp, so we check for that which may trigger initialization.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]