Skip to content

Commit edba249

Browse files
committed
OS (SunOS): don't parse unstructured text
1 parent 57b3c39 commit edba249

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/detection/os/os_sunos.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ void ffDetectOSImpl(FFOSResult* os)
1212

1313
// OpenIndiana Hipster 2024.04
1414
uint32_t idx = ffStrbufFirstIndexC(&os->prettyName, ' ');
15-
ffStrbufSetNS(&os->name, idx, os->prettyName.chars);
16-
uint32_t idx2 = ffStrbufNextIndexC(&os->prettyName, idx + 1, ' ');
17-
ffStrbufSetNS(&os->codename, idx2 - idx - 1, os->prettyName.chars + idx + 1);
18-
ffStrbufSetNS(&os->version, idx2 - idx - 1, os->prettyName.chars + idx2 + 1);
15+
ffStrbufSetNS(&os->id, idx, os->prettyName.chars);
1916
ffStrbufSetStatic(&os->idLike, "sunos");
2017
}

src/modules/os/os.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
static void buildOutputDefault(const FFOSResult* os, FFstrbuf* result)
1313
{
14-
// asm ("int3");
1514
//Create the basic output
1615
if(os->name.length > 0)
1716
ffStrbufAppend(result, &os->name);

0 commit comments

Comments
 (0)