Blame SOURCES/aide-0.16-crash-elf.patch

1e4393
--- ./src/do_md.c	2018-03-19 05:10:19.994957024 -0400
1e4393
+++ ./src/do_md.c	2018-03-19 05:19:05.829957024 -0400
1e4393
@@ -135,8 +135,13 @@
1e4393
                         continue;
1e4393
 
1e4393
                 while (!bingo && (data = elf_getdata (scn, data)) != NULL) {
1e4393
-                        int maxndx = data->d_size / shdr.sh_entsize;
1e4393
+                        int maxndx;
1e4393
                         int ndx;
1e4393
+			
1e4393
+                        if (shdr.sh_entsize != 0)
1e4393
+                                maxndx = data->d_size / shdr.sh_entsize;
1e4393
+                        else
1e4393
+                                continue;
1e4393
 
1e4393
                         for (ndx = 0; ndx < maxndx; ++ndx) {
1e4393
                                 (void) gelf_getdyn (data, ndx, &dyn);