mirror of https://github.com/OISF/suricata
cybersecurityidsintrusion-detection-systemintrusion-prevention-systemipsnetwork-monitornetwork-monitoringnsmsecuritysuricatathreat-hunting
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
*** CID 1358024: Null pointer dereferences (REVERSE_INULL)
/src/util-mpm-hs.c: 1043 in SCHSPrintInfo()
1037 printf(" SCHSPattern %" PRIuMAX "\n", (uintmax_t)sizeof(SCHSPattern));
1038 printf("Unique Patterns: %" PRIu32 "\n", mpm_ctx->pattern_cnt);
1039 printf("Smallest: %" PRIu32 "\n", mpm_ctx->minlen);
1040 printf("Largest: %" PRIu32 "\n", mpm_ctx->maxlen);
1041 printf("\n");
1042
>>> CID 1358024: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "ctx" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1043 if (ctx) {
1044 char *db_info = NULL;
1045 if (hs_database_info(pd->hs_db, &db_info) == HS_SUCCESS) {
1046 printf("HS Database Info: %s\n", db_info);
1047 SCFree(db_info);
1048 }
|
10 years ago | |
|---|---|---|
| benches | ||
| contrib | ||
| doc | ||
| lua | ||
| m4 | ||
| qa | 10 years ago | |
| rules | 10 years ago | |
| scripts | ||
| src | 10 years ago | |
| .gitignore | ||
| .travis.yml | ||
| COPYING | ||
| ChangeLog | 10 years ago | |
| LICENSE | ||
| Makefile.am | ||
| Makefile.cvs | ||
| acsite.m4 | ||
| autogen.sh | ||
| classification.config | ||
| config.rpath | ||
| configure.ac | 10 years ago | |
| doxygen.cfg | ||
| reference.config | ||
| suricata.yaml.in | 10 years ago | |
| threshold.config | ||