Project

General

Profile

Actions

Bug #5818

closed

time: integer comparison with different signs

Added by Jeff Lucovsky almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Using SCTime instead of timeval has created the following issue:

source-pfring.c: In function 'ReceivePfringLoop':
source-pfring.c:425:36: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'time_t' {aka 'long int'} [-Wsign-compare]
  425 |             if (SCTIME_SECS(p->ts) != last_dump) {


Subtasks 1 (0 open1 closed)

Bug #6034: time: integer comparison with different signs (6.0.x backport)ClosedJeff LucovskyActions

Related issues 1 (0 open1 closed)

Has duplicate Suricata - Bug #3090: pfring compile err - openSUSE Tumbleweed , Ubuntu Eoan/ Debian unstableClosedActions
Actions #1

Updated by Victor Julien almost 2 years ago

  • Target version changed from 7.0.0-beta1 to 7.0.0-rc1
Actions #2

Updated by Victor Julien almost 2 years ago

  • Target version changed from 7.0.0-rc1 to 7.0.0-rc2
Actions #3

Updated by Jeff Lucovsky almost 2 years ago

  • Status changed from Assigned to In Review
Actions #4

Updated by Jeff Lucovsky almost 2 years ago

  • Status changed from In Review to Closed
Actions #5

Updated by Victor Julien almost 2 years ago

  • Status changed from Closed to Assigned

Another case

source-nflog.c: In function ‘NFLOGCallback’:                         
source-nflog.c:181:36: warning: passing argument 2 of ‘nflog_get_timestamp’ from incompatible pointer type [-Wincompatible-pointer-types]
  181 |     ret = nflog_get_timestamp(nfa, &p->ts);                 
      |                                    ^~~~~~         
      |                                    |
      |                                    SCTime_t * {aka struct <anonymous> *}
In file included from source-nflog.h:28,                 
                 from decode.h:68,
                 from source-nflog.c:27:                     
/usr/include/libnetfilter_log/libnetfilter_log.h:57:73: note: expected ‘struct timeval *’ but argument is of type ‘SCTime_t *’ {aka ‘struct <anonymous> *’}
   57 | extern int nflog_get_timestamp(struct nflog_data *nfad, struct timeval *tv);
      |                                                         ~~~~~~~~~~~~~~~~^~

Actions #6

Updated by Jeff Lucovsky almost 2 years ago

  • Status changed from Assigned to In Review
Actions #7

Updated by Jeff Lucovsky almost 2 years ago

  • Status changed from In Review to Closed
Actions #8

Updated by Jeff Lucovsky over 1 year ago

  • Status changed from Closed to Resolved
  • Label Needs backport to 6.0 added
Actions #9

Updated by OISF Ticketbot over 1 year ago

  • Subtask #6034 added
Actions #10

Updated by OISF Ticketbot over 1 year ago

  • Label deleted (Needs backport to 6.0)
Actions #11

Updated by Victor Julien over 1 year ago

  • Has duplicate Bug #3090: pfring compile err - openSUSE Tumbleweed , Ubuntu Eoan/ Debian unstable added
Actions #12

Updated by Victor Julien over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF