aboutsummaryrefslogtreecommitdiff
path: root/net/wireshark/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireshark/files')
-rw-r--r--net/wireshark/files/patch-epan_dissectors_packet-its.c11
-rw-r--r--net/wireshark/files/patch-epan_dissectors_packet-kerberos.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/net/wireshark/files/patch-epan_dissectors_packet-its.c b/net/wireshark/files/patch-epan_dissectors_packet-its.c
new file mode 100644
index 000000000000..dbd0e521895b
--- /dev/null
+++ b/net/wireshark/files/patch-epan_dissectors_packet-its.c
@@ -0,0 +1,11 @@
+--- epan/dissectors/packet-its.c.orig 2025-10-14 14:35:47 UTC
++++ epan/dissectors/packet-its.c
+@@ -23047,7 +23047,7 @@ its_timestamp_fmt(char *s, uint64_t v)
+ static void
+ its_timestamp_fmt(char *s, uint64_t v)
+ {
+- time_t secs = v / 1000 + 1072915200 - 5;
++ time_t secs = (time_t) ((time_t)v / 1000 + 1072915200 - 5);
+ struct tm *tm = gmtime(&secs);
+ snprintf(s, ITEM_LABEL_LENGTH, "%u-%02u-%02u %02u:%02u:%02u.%03u (%" PRIu64 ")",
+ tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, (uint32_t)(v % 1000), v
diff --git a/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c b/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c
new file mode 100644
index 000000000000..13c7bfbd0ac6
--- /dev/null
+++ b/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c
@@ -0,0 +1,11 @@
+--- epan/dissectors/packet-kerberos.c.orig 2025-10-16 15:54:37 UTC
++++ epan/dissectors/packet-kerberos.c
+@@ -3401,7 +3401,7 @@ read_keytab_file(const char *filename)
+
+ /* generate origin string, describing where this key came from */
+ for(i=0;i<key.principal->name.name_string.len;i++){
+- wmem_strbuf_append_printf(str_principal, "%s%s",(i?"/":""),key.principal->name.name_string.val[i]));
++ wmem_strbuf_append_printf(str_principal, "%s%s",(i?"/":""),key.principal->name.name_string.val[i]);
+ }
+ wmem_strbuf_append_printf(str_principal, "@%s",key.principal->realm);
+ new_key->key_origin = (char*)wmem_strbuf_get_str(str_principal);