Hello community,

here is the log from the commit of package afl for openSUSE:Factory checked in 
at 2016-04-28 16:54:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/afl (Old)
 and      /work/SRC/openSUSE:Factory/.afl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "afl"

Changes:
--------
--- /work/SRC/openSUSE:Factory/afl/afl.changes  2016-03-31 13:03:14.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.afl.new/afl.changes     2016-04-28 
16:57:13.000000000 +0200
@@ -1,0 +2,6 @@
+Sat Apr 16 15:12:46 UTC 2016 - astie...@suse.com
+
+- afl 2.10b:
+  * Fix a minor core counting glitch
+
+-------------------------------------------------------------------

Old:
----
  afl-2.09b.tgz

New:
----
  afl-2.10b.tgz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ afl.spec ++++++
--- /var/tmp/diff_new_pack.2u2OFS/_old  2016-04-28 16:57:15.000000000 +0200
+++ /var/tmp/diff_new_pack.2u2OFS/_new  2016-04-28 16:57:15.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           afl
-Version:        2.09b
+Version:        2.10b
 Release:        0
 Summary:        American fuzzy lop is a security-oriented fuzzer
 License:        Apache-2.0

++++++ afl-2.09b.tgz -> afl-2.10b.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/afl-2.09b/Makefile new/afl-2.10b/Makefile
--- old/afl-2.09b/Makefile      2016-03-26 23:08:53.000000000 +0100
+++ new/afl-2.10b/Makefile      2016-03-31 05:06:26.000000000 +0200
@@ -14,7 +14,7 @@
 #
 
 PROGNAME    = afl
-VERSION     = 2.09b
+VERSION     = 2.10b
 
 PREFIX     ?= /usr/local
 BIN_PATH    = $(PREFIX)/bin
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/afl-2.09b/afl-fuzz.c new/afl-2.10b/afl-fuzz.c
--- old/afl-2.09b/afl-fuzz.c    2016-03-26 23:07:40.000000000 +0100
+++ new/afl-2.10b/afl-fuzz.c    2016-03-31 05:02:35.000000000 +0200
@@ -7133,19 +7133,24 @@
 
 #else
 
-  /* On Linux, a simple way is to look at /proc/stat, especially since we'd
-     be parsing it anyway for other reasons later on. */
+  if (!cpu_core_count) {
 
-  FILE* f = fopen("/proc/stat", "r");
-  u8 tmp[1024];
+    /* On Linux, a simple way is to look at /proc/stat, especially since we'd
+       be parsing it anyway for other reasons later on. But do this only if
+       cpu_core_count hasn't been obtained before as a result of specifying
+       -Z. */
 
-  if (!f) return;
+    FILE* f = fopen("/proc/stat", "r");
+    u8 tmp[1024];
 
-  while (fgets(tmp, sizeof(tmp), f))
-    if (!strncmp(tmp, "cpu", 3) && isdigit(tmp[3])) cpu_core_count++;
+    if (!f) return;
+
+    while (fgets(tmp, sizeof(tmp), f))
+      if (!strncmp(tmp, "cpu", 3) && isdigit(tmp[3])) cpu_core_count++;
+
+    fclose(f);
+  }
 
-  fclose(f);
-  
 #endif /* ^(__APPLE__ || __FreeBSD__ || __OpenBSD__) */
 
   if (cpu_core_count) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/afl-2.09b/docs/ChangeLog new/afl-2.10b/docs/ChangeLog
--- old/afl-2.09b/docs/ChangeLog        2016-03-26 23:08:34.000000000 +0100
+++ new/afl-2.10b/docs/ChangeLog        2016-03-31 05:06:13.000000000 +0200
@@ -17,6 +17,12 @@
 to get on with the times.
 
 --------------
+Version 2.10b:
+--------------
+
+  - Fixed a minor core counting glitch, reported by Tyler Nighswander.
+
+--------------
 Version 2.09b:
 --------------
 


Reply via email to