You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reject complete multicast and reserved IPv4 ranges
source/t2parser/t2parserxconf.c:192
These masks reject only 224.0.0.0/8 and 240.0.0.0/8, rather than the full multicast (224.0.0.0/4) and reserved (240.0.0.0/4) ranges. For example, https://239.1.2.3/upload passes validation even though multicast is not a usable unicast HTTPS destination. Use a /4 mask for both checks so these invalid destinations are rejected when the profile is parsed.
In T2ER_PushDataWithDelim(), this new rejection warning formats the entire oversized name and value while erMutex is held. T2Log() allocates space for the full formatted message (source/utils/t2log_wrapper.c:62-81), so rejected input still causes payload-sized allocations and log output, undermining the event-size limit. Use a fixed message here; isValidEventLength() already logs the measured lengths.
Direct push warning logs oversized payload under mutex
source/bulkdata/t2eventreceiver.c:235
The direct T2ER_Push() entry point also echoes the entire oversized name and value in its new rejection warning. T2Log() allocates space for the full formatted message (source/utils/t2log_wrapper.c:62-81), so rejected events can still cause payload-sized allocations and log output while erMutex is held. Bound this message independently of the delimited-event entry point; the validator already logs the measured lengths.
Signed-off-by: Yogeswaran K <Yogeswaransky@gmail.com>
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.