NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/50528: src/sys/netinet/sctp_indata.c:3759: sizeof on sizeof ?



>Number:         50528
>Category:       kern
>Synopsis:       src/sys/netinet/sctp_indata.c:3759: sizeof on sizeof ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 11 09:55:01 +0000 2015
>Originator:     David Binderman
>Release:        cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/sys/netinet/sctp_indata.c:3759]: (warning) Calling 'sizeof' on 'sizeof'.

Source code is

  if (((num_seg * sizeof (sizeof(struct sctp_gap_ack_block))) + sizeof(struct sctp_sack_chunk)) > sack_length) {

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index