Skip to content

Commit bbda63f

Browse files
committed
Fix bug in Header Overflow risk due to not correctly appending TruncationMarker value when the Event Log exceeds the possible size that can be sent as GZipped (which is a rare edge case).
1 parent 34ee730 commit bbda63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apachefop-serverless-az-func/src/main/java/com/cajuncoding/apachefop/serverless/web/ApacheFopServerlessResponseBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public SafeHeader CreateSafeHeaderValue(String headerValue, int maxHeaderBytesSi
110110
//Safely overwrite the last set of characters with the Truncation Marker...
111111
truncatedValue = truncatedValue
112112
.substring(0, truncatedValue.length() - TruncationMarker.length())
113-
.concat(truncatedValue);
113+
.concat(TruncationMarker);
114114

115115
resultValue = truncatedValue;
116116
}

0 commit comments

Comments
 (0)