diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-02-02 00:22:31 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-02-02 13:10:41 +0100 |
commit | e2f1a25115750d3e07a6f2a99f04fa3f7d75463e (patch) | |
tree | 0f8aeabced9aa64a66c7435039e845d2d74dbd05 /windows | |
parent | 13212711ab85bb9e5b3dfdb51b8a0ba0b6b3fa32 (diff) |
Simplify and fix JA4 string computation.fix/tls-ja4-strncpy-truncation
* additional JA4 string buffer is not needed and may cause a string truncation warning
```
protocols/tls.c: In function ‘ndpi_compute_ja4’:
protocols/tls.c:1738:3: warning: ‘strncpy’ output may be truncated copying 36 bytes from a string of length 1023 [-Wstringop-truncation]
1738 | strncpy(flow->protos.tls_quic.ja4_client, ja_str, 36);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'windows')
0 files changed, 0 insertions, 0 deletions