Debian Patches

Status for libsmb2/6.2+dfsg-2

Patch Description Author Forwarded Bugs Origin Last update
10-Fix-compiler-warning.patch [PATCH] Fix compiler warning about "cast increases required alignment"

Some ISA, like ARMv6, do not support unaligned memory accesses.
The cast here technically convert a the pointer target from a char to
another pointer.
However, as the buf field (char) is laid out after a pointer in the
structure definition, the alignment for buf is forced to the same
alignment as a pointer.
Thus the issue with unaligned access can not happen and the workaround
by re-casting the pointer via void * is safe.
Ronnie Sahlberg <ronniesahlberg@gmail.com> yes upstream upstream, https://github.com/sahlberg/libsmb2/commit/66b098787213cda14d8fbf6e346517df2bb1fe7e 2024-04-03
20-Handle-a-bunch-of-other-compiler-warnings.patch [PATCH] Handle a bunch of other compiler warnings on armv6
and similararchectures that can not handle unaligned accesses
and where pointer conversions cause compiler warnings when converting
a pointer to a larger type.
Ronnie Sahlberg <ronniesahlberg@gmail.com> yes upstream upstream, https://github.com/sahlberg/libsmb2/commit/55555e27e3e9d84503ff276ed7a1fb08c2c35019 2024-04-03

All known versions for source package 'libsmb2'

Links