Rewrite memrchr to avoid an unsigned integer underflow.
commit038f5e324264709816a34baf4364a764a58a57fb
authorChristopher Davis <chrisd@mangrin.org>
Wed, 24 Mar 2010 03:23:30 +0000 (23 20:23 -0700)
committerChristopher Davis <chrisd@mangrin.org>
Wed, 24 Mar 2010 03:23:30 +0000 (23 20:23 -0700)
tree1d6c325dcf25812ae2782da0e659422a105ae24c
parentb6c48d1d99ab6462596a095c439cc4502517a23f
Rewrite memrchr to avoid an unsigned integer underflow.

This fixes a crash that occurs when Polipo receives a CONNECT
request without a port.
util.c