[Forensics-changes] [aeskeyfind] 01/01: d/p/sbox-size: New patch to address array misuse

Samuel Henrique samueloph-guest at moszumanska.debian.org
Sun Dec 25 18:21:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

samueloph-guest pushed a commit to branch debian
in repository aeskeyfind.

commit a64fa992031a6d46965bbba094f11e48f2d4caa0
Author: Samuel Henrique <samueloph at gmail.com>
Date:   Sun Dec 25 16:20:17 2016 -0200

    d/p/sbox-size: New patch to address array misuse
    
    This should close #692293
---
 debian/patches/sbox-size.patch | 16 ++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/sbox-size.patch b/debian/patches/sbox-size.patch
new file mode 100644
index 0000000..7b7c88a
--- /dev/null
+++ b/debian/patches/sbox-size.patch
@@ -0,0 +1,16 @@
+Description: Fix sbox array size
+ See #692293 for details.
+Author: Samuel Henrique <samueloph at gmail.com>
+Index: aeskeyfind/aes.c
+===================================================================
+--- aeskeyfind.orig/aes.c
++++ aeskeyfind/aes.c
+@@ -4,7 +4,7 @@
+ 
+ #include "util.h"
+ 
+-uint8_t sbox[256] = {
++uint8_t sbox[255] = {
+   //0     1    2      3     4    5     6     7      8    9     A      B    C     D     E     F
+   0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, //0
+   0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, //1
diff --git a/debian/patches/series b/debian/patches/series
index 800599c..5cbb428 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 add-gcc-hardening
+sbox-size.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/aeskeyfind.git



More information about the forensics-changes mailing list