diff options
author | Matteo Bernardini | 2021-03-06 11:17:38 +0100 |
---|---|---|
committer | Matteo Bernardini | 2021-03-06 11:17:38 +0100 |
commit | ba295afbbb907833cfa6ac387484f96d170b9932 (patch) | |
tree | 199813d1c30184d4b602ea8b2d112792d6ab656e /network/dsniff/patches/30_pntohl_shift.patch | |
parent | 3c59cb22425adf5d8a0d1a79baf00e6d9334c620 (diff) | |
download | slackbuilds-ba295afbbb907833cfa6ac387484f96d170b9932.tar.gz |
20210306.1 global branch merge.current-20210306.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/dsniff/patches/30_pntohl_shift.patch')
-rw-r--r-- | network/dsniff/patches/30_pntohl_shift.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/network/dsniff/patches/30_pntohl_shift.patch b/network/dsniff/patches/30_pntohl_shift.patch new file mode 100644 index 0000000000..8764d69523 --- /dev/null +++ b/network/dsniff/patches/30_pntohl_shift.patch @@ -0,0 +1,19 @@ +Description: Corrects the incorrect bit-shift in pntohl(), the left-shift should be 8 bits, not 18. +Author: Matthew Boyle <mlb@decisionsoft.co.uk> +Origin: http://pkgs.fedoraproject.org/cgit/rpms/dsniff.git/tree/dsniff-2.4-pntohl_shift.patch +Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=714958 +Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=850496 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + +--- a/decode.h ++++ b/decode.h +@@ -35,7 +35,7 @@ + (u_short)*((u_char *)p+0)<<8)) + + #define pntohl(p) ((u_int32_t)*((u_char *)p+3)<<0| \ +- (u_int32_t)*((u_char *)p+2)<<18| \ ++ (u_int32_t)*((u_char *)p+2)<<8| \ + (u_int32_t)*((u_char *)p+1)<<16| \ + (u_int32_t)*((u_char *)p+0)<<24) + |