From aa5a0714e2ae3c401ac9e6901dde87ad70568d8c Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 11 Aug 2016 21:14:43 -0600 Subject: * Protect all calls to mail_elt in pith/ and alpine/ code. Protect means to check for correct range of message number before calling mail_elt. * Work in progress: correct some uses of system calls that do not check for returned value. This work will follow the lead given by Christian Kujau and Asheesh Laroia. Expect more changes of this type in subsequent commits. --- pith/icache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pith/icache.c') diff --git a/pith/icache.c b/pith/icache.c index d69c6134..eeb0ff35 100644 --- a/pith/icache.c +++ b/pith/icache.c @@ -45,7 +45,7 @@ clear_index_cache_ent(MAILSTREAM *stream, long int msgno, unsigned int flags) MESSAGECACHE *mc; if(stream){ - if(flags && IC_USE_RAW_MSGNO) + if(flags & IC_USE_RAW_MSGNO) rawno = msgno; else rawno = mn_m2raw(sp_msgmap(stream), msgno); -- cgit v1.2.3-54-g00ecf