Skip to content

Commit

Permalink
Fix #380. utf8 string validation
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Dec 2, 2022
1 parent 61c8aa7 commit 5a9f88a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 1,9 @@
2022-12-02
- Fix #380. string validation
- Fix #377. Rework sampling code in general. Switch to packet interval/space notation. Map older sampling to new notation.

Fix #375 relative timestamps with sysUptime id 160

2022-10-23
- Rework nbar code. Use new array records and fix nbar bug in older versions.

Expand Down
2 changes: 1 addition & 1 deletion src/netflow/netflow_v9.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 1435,7 @@ static void Process_v9_nbar_option_data(exporterDomain_t *exporter, FlowSource_t
// description string
memcpy(p, inBuff nbarOption->desc.offset, nbarOption->desc.length);
state = UTF8_ACCEPT;
if (validate_utf8(&state, (char *)p, nbarOption->name.length) == UTF8_REJECT) {
if (validate_utf8(&state, (char *)p, nbarOption->desc.length) == UTF8_REJECT) {
LogError("Process_nbar_option: validate_utf8() %s line %d: %s", __FILE__, __LINE__, "invalid utf8 nbar description");
err = 1;
}
Expand Down

0 comments on commit 5a9f88a

Please sign in to comment.