Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 421341e

Browse files
authoredJan 17, 2024
Merge pull request #2761 from vibe-d/fix_buffer_overflow
Avoid possible array bounds error.
2 parents f439a64 + abf1ea1 commit 421341e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎http/vibe/http/server.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,7 @@ private string formatRFC822DateAlloc(SysTime time)
24812481
static LAST = CacheTime(SysTime.min());
24822482

24832483
if (time > LAST.nextUpdate) {
2484-
auto app = new FixedAppender!(string, 29);
2484+
auto app = new FixedAppender!(string, 32);
24852485
writeRFC822DateTimeString(app, time);
24862486
LAST.update(time);
24872487
LAST.cachedDate = () @trusted { return app.data; } ();

0 commit comments

Comments
 (0)
Please sign in to comment.