From: Rich Felker Date: Sun, 4 Sep 2011 04:06:01 +0000 (-0400) Subject: fix twos complement overflow bug in mem streams boundary check X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=32d67e938e8da0f37c59247acee8b10eaf9a113c;hp=32d67e938e8da0f37c59247acee8b10eaf9a113c fix twos complement overflow bug in mem streams boundary check the expression -off is not safe in case off is the most-negative value. instead apply - to base which is known to be non-negative and bounded within sanity. ---