• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OISF / suricata / 22618661228

02 Mar 2026 09:33PM UTC coverage: 42.258% (-34.4%) from 76.611%
22618661228

push

github

victorjulien
github-actions: bump actions/download-artifact from 7.0.0 to 8.0.0

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2...70fc10c6e)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

91511 of 216553 relevant lines covered (42.26%)

3416852.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.15
/src/detect-byte.c
1
/* Copyright (C) 2020 Open Information Security Foundation
2
 *
3
 * You can copy, redistribute or modify this Program under the terms of
4
 * the GNU General Public License version 2 as published by the Free
5
 * Software Foundation.
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 * GNU General Public License for more details.
11
 *
12
 * You should have received a copy of the GNU General Public License
13
 * version 2 along with this program; if not, write to the Free Software
14
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
 * 02110-1301, USA.
16
 */
17

18
/**
19
 * \file
20
 *
21
 * \author Jeff Lucovsky <jeff@lucovsky.org>
22
 */
23

24
#include "suricata-common.h"
25
#include "rust.h"
26
#include "detect-byte.h"
27
#include "detect-byte-extract.h"
28
#include "detect-bytemath.h"
29

30
/**
31
 * \brief Used to retrieve args from BM.
32
 *
33
 * \param arg The name of the variable being sought
34
 * \param s The signature to check for the variable
35
 * \param sm_list The caller's matching buffer
36
 * \param index When found, the value of the slot within the byte vars
37
 *
38
 * \retval true A match for the variable was found.
39
 * \retval false
40
 */
41
bool DetectByteRetrieveSMVar(
42
        const char *arg, const Signature *s, int sm_list, DetectByteIndexType *index)
43
{
39✔
44
    SigMatch *bed_sm = DetectByteExtractRetrieveSMVar(arg, sm_list, s);
39✔
45
    if (bed_sm != NULL) {
39✔
46
        *index = ((SCDetectByteExtractData *)bed_sm->ctx)->local_id;
39✔
47
        return true;
39✔
48
    }
39✔
49

50
    SigMatch *bmd_sm = DetectByteMathRetrieveSMVar(arg, sm_list, s);
×
51
    if (bmd_sm != NULL) {
×
52
        *index = ((DetectByteMathData *)bmd_sm->ctx)->local_id;
×
53
        return true;
×
54
    }
×
55
    return false;
×
56
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc