Files
hcode/CVE-2024-34020-putSDN_OOB_write.patch
2024-04-30 07:17:39 +00:00

14 lines
441 B
Diff

Index: hcode2.1-mailpatch3/mail.c
===================================================================
--- hcode2.1-mailpatch3.orig/mail.c
+++ hcode2.1-mailpatch3/mail.c
@@ -240,7 +240,7 @@ int outCode;
unsigned char ibuf[HDR_BUF_LEN],obuf[HDR_BUF_LEN],tbuf[HDR_BUF_LEN];
unsigned char *iptr, *tptr;
- if ( cp >= HDR_BUF_LEN ) {
+ if ( cp >= (HDR_BUF_LEN-8) ) {
pr2m(Printwc,fpout,outCode);
return;
}