Richard Cochran
2015-08-28 18:22:36 UTC
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(-)
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
------------------------------------------------------------------------------
2.1.4
------------------------------------------------------------------------------