From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id f59c14df; for ; Wed, 11 Mar 2015 08:05:50 -0500 (EST) Date: Wed, 11 Mar 2015 08:05:50 -0500 (EST) Message-Id: <1661783510693885297.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Fix previous: size_t is often narrower than off_t. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Fix previous: size_t is often narrower than off_t. Cluestick applied by joerg at NetBSD. Modified Files: -------------- mdocml: read.c Revision Data ------------- Index: read.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/read.c,v retrieving revision 1.130 retrieving revision 1.131 diff -Lread.c -Lread.c -u -p -r1.130 -r1.131 --- read.c +++ read.c @@ -636,7 +636,7 @@ read_whole_file(struct mparse *curp, con */ if (S_ISREG(st.st_mode)) { - if ((size_t)st.st_size >= (1U << 31)) { + if (st.st_size > 0x7fffffff) { mandoc_msg(MANDOCERR_TOOLARGE, curp, 0, 0, NULL); return(0); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv