--- a/src/mesh/model/dot11s/ie-dot11s-preq.cc Thu Feb 27 09:45:55 2014 -0500
+++ b/src/mesh/model/dot11s/ie-dot11s-preq.cc Sun Mar 02 00:42:05 2014 -0800
@@ -423,7 +423,8 @@
{
return false;
}
- if ((GetInformationFieldSize () + 11) > 255)
+ // -fstrict-overflow sensitive, see bug 1868
+ if ( GetInformationFieldSize () > 255 - 11 )
{
return false;
}
@@ -432,7 +433,8 @@
bool
IePreq::IsFull () const
{
- return ((GetInformationFieldSize () + 11) > 255);
+ // -fstrict-overflow sensitive, see bug 1868
+ return ( GetInformationFieldSize () > 255 - 11 );
}
std::ostream &
operator << (std::ostream &os, const IePreq &a)