This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  f0b50da14d9f14b1a548784eeddfd16eedc0cfea (commit)
       via  f5cd92a82600067835c05c7e82726161a150a50b (commit)
      from  49e1c1d7819707a52a5acf37dad5457c4ea3061b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f0b50da14d9f14b1a548784eeddfd16eedc0cfea
commit f0b50da14d9f14b1a548784eeddfd16eedc0cfea
Merge: 49e1c1d f5cd92a
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Thu Nov 19 13:20:33 2015 -0500
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Thu Nov 19 13:20:33 2015 -0500

    Merge topic 'avoid-divide-by-zero' into next
    
    f5cd92a8 cmELF: Avoid divide by zero if there are no dynamic section entries


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f5cd92a82600067835c05c7e82726161a150a50b
commit f5cd92a82600067835c05c7e82726161a150a50b
Author:     Ty Smith <tyfigh...@gmail.com>
AuthorDate: Thu Nov 19 11:04:34 2015 -0600
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Thu Nov 19 13:20:21 2015 -0500

    cmELF: Avoid divide by zero if there are no dynamic section entries

diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index d062987..37dd328 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -567,8 +567,14 @@ bool cmELFInternalImpl<Types>::LoadDynamicSection()
     return true;
     }
 
-  // Allocate the dynamic section entries.
+  // If there are no entries we are done.
   ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
+  if(sec.sh_entsize == 0)
+    {
+    return false;
+    }
+
+  // Allocate the dynamic section entries.
   int n = static_cast<int>(sec.sh_size / sec.sh_entsize);
   this->DynamicSectionEntries.resize(n);
 

-----------------------------------------------------------------------

Summary of changes:


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits

Reply via email to