While testing ptp4l with another open source PTP stack (who shall
remain nameless), I found that the foreign master would set the
logMessageInterval field to 0x7F (or 2^127 seconds!) in some
circumstances.  Up until now we have trusted this input, but I think
it wiser to enforce some input checking, in order to handle wacky
foreign masters.


Richard Cochran (2):
  Fix integer overflow in the foreign master bookkeeping code.
  port: constrain the master's logMinDelayReqInterval.

 port.c | 25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

-- 
2.1.4


------------------------------------------------------------------------------
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to