Skip to content
  • Thayumanavar S's avatar
    3c1473f1
    BUG#32113015 - WHEN THE INPUT OF NET_LENGTH_SIZE IS 251, THE · 3c1473f1
    Thayumanavar S authored
                   RETURN SHOULD BE 3.
    
    net_length_size return incorrectly the buffer size when the input
    length is 251. This is because we use one byte for length less than
    251 and three bytes for length above these value. The value 251 is
    reserved for NULL and this encoding requires 3 bytes.
    The patch fixes the issue by return correct value for net_length_size
    when the input size is 251.
    
    Change-Id: If11ac2171170ad03830b8520eabc2f71d8a5d5c3
    3c1473f1
    BUG#32113015 - WHEN THE INPUT OF NET_LENGTH_SIZE IS 251, THE
    Thayumanavar S authored
                   RETURN SHOULD BE 3.
    
    net_length_size return incorrectly the buffer size when the input
    length is 251. This is because we use one byte for length less than
    251 and three bytes for length above these value. The value 251 is
    reserved for NULL and this encoding requires 3 bytes.
    The patch fixes the issue by return correct value for net_length_size
    when the input size is 251.
    
    Change-Id: If11ac2171170ad03830b8520eabc2f71d8a5d5c3
Loading