diff options
author | Toni <matzeton@googlemail.com> | 2024-02-02 14:25:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 14:25:43 +0100 |
commit | f8aa642c3cfad00abed77cd24b7c81f940f00c96 (patch) | |
tree | 0f8aeabced9aa64a66c7435039e845d2d74dbd05 /example/ndpiReader.c | |
parent | 13212711ab85bb9e5b3dfdb51b8a0ba0b6b3fa32 (diff) |
Simplify and fix JA4 string computation. (#2298)
* 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 'example/ndpiReader.c')
0 files changed, 0 insertions, 0 deletions