Patches
George Lindholm
George.Lindholm at ubc.ca
Mon Oct 4 18:39:54 UTC 1999
Typo in art.c
Sanity check in ov3.c
George
--
George.Lindholm at ubc.ca ITServices, UBC
Programmer/Analyst
phone: 604.822.4375 fax: 604.822.5116
-- Attached file included as plaintext by Listar --
-- File: art.pa
*** innd/art.c 1999/10/04 18:36:44 1.1
--- innd/art.c 1999/10/04 18:37:14
***************
*** 2512,2522 ****
/* Start logging, then propagate the article. */
if (CRwithoutLF > 0 || LFwithoutCR > 0) {
if (CRwithoutLF > 0 && LFwithoutCR == 0)
! (void)sprintf(buff, "%d article includes CR withtout LF(%d)", NNTP_REJECTIT_VAL, CRwithoutLF);
else if (CRwithoutLF == 0 && LFwithoutCR > 0)
! (void)sprintf(buff, "%d article includes LF withtout CR(%d)", NNTP_REJECTIT_VAL, LFwithoutCR);
else
! (void)sprintf(buff, "%d article includes CR withtout LF(%d) and LF withtout CR(%d)", NNTP_REJECTIT_VAL, CRwithoutLF, LFwithoutCR);
ARTlog(&Data, ART_STRSTR, buff);
}
ARTlog(&Data, Accepted ? ART_ACCEPT : ART_JUNK, (char *)NULL);
--- 2512,2522 ----
/* Start logging, then propagate the article. */
if (CRwithoutLF > 0 || LFwithoutCR > 0) {
if (CRwithoutLF > 0 && LFwithoutCR == 0)
! (void)sprintf(buff, "%d article includes CR without LF(%d)", NNTP_REJECTIT_VAL, CRwithoutLF);
else if (CRwithoutLF == 0 && LFwithoutCR > 0)
! (void)sprintf(buff, "%d article includes LF without CR(%d)", NNTP_REJECTIT_VAL, LFwithoutCR);
else
! (void)sprintf(buff, "%d article includes CR without LF(%d) and LF withtout CR(%d)", NNTP_REJECTIT_VAL, CRwithoutLF, LFwithoutCR);
ARTlog(&Data, ART_STRSTR, buff);
}
ARTlog(&Data, Accepted ? ART_ACCEPT : ART_JUNK, (char *)NULL);
-- Attached file included as plaintext by Listar --
-- File: ov3.pa
*** storage/ov3/ov3.c 1999/10/04 18:23:35 1.1
--- storage/ov3/ov3.c 1999/10/04 18:25:15
***************
*** 867,872 ****
--- 867,879 ----
base = ge->base;
} while (ge->indexinode != oldinode);
+ if (high < base || low < base) { /* Check for corrupted group entry */
+ OV3closegroup(gh, FALSE);
+ syslog(L_ERROR, "tradindexed: Group %s has a corrupted group entry",
+ group);
+ return NULL;
+ }
+
if (!OV3mmapgroup(gh)) {
OV3closegroup(gh, FALSE);
return NULL;
More information about the inn-bugs
mailing list