From 04443508859003dad7df7b129ff319ae3309bd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 5 Jul 2020 18:22:44 +0200 Subject: [PATCH] pkstrings: increase array size for 'index out of bounds' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- pkstrings/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index f1ee4e7..5e8bd45 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -203,7 +203,7 @@ lazy_static! { (0x50, '@'), ]; - let mut vec: Vec> = [None; 255].to_vec(); + let mut vec: Vec> = [None; 256].to_vec(); for (k, v) in tmp.iter() { vec[*k] = Some(*v); }