Recent changes (master)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following changes since commit c6cade164bc7e35e95ba88f816be4f44475e4e23:

  lib/pattern: Fix seg fault when calculating pattern length (2023-01-30 10:46:22 -0500)

are available in the Git repository at:

  git://git.kernel.dk/fio.git master

for you to fetch changes up to 7d7a704638a1e957c845c04eeac82bdeda0c674c:

  lib/pattern: fix formatting (2023-01-31 10:44:54 -0500)

----------------------------------------------------------------
Vincent Fu (2):
      test: add test for lib/pattern segfault issue
      lib/pattern: fix formatting

 lib/pattern.c             | 4 ++--
 t/jobs/t0028-c6cade16.fio | 5 +++++
 t/run-fio-tests.py        | 9 +++++++++
 3 files changed, 16 insertions(+), 2 deletions(-)
 create mode 100644 t/jobs/t0028-c6cade16.fio

---

Diff of recent changes:

diff --git a/lib/pattern.c b/lib/pattern.c
index e31d4734..9fca643e 100644
--- a/lib/pattern.c
+++ b/lib/pattern.c
@@ -386,9 +386,9 @@ static int parse_and_fill_pattern(const char *in, unsigned int in_len,
 		assert(filled);
 		assert(filled <= out_len);
 		out_len -= filled;
-		if (out)
-			out     += filled;
 		total   += filled;
+		if (out)
+			out += filled;
 
 	} while (in_len);
 
diff --git a/t/jobs/t0028-c6cade16.fio b/t/jobs/t0028-c6cade16.fio
new file mode 100644
index 00000000..a0096d80
--- /dev/null
+++ b/t/jobs/t0028-c6cade16.fio
@@ -0,0 +1,5 @@
+[test]
+size=16k
+readwrite=write
+buffer_pattern="abcd"-120xdeadface
+ioengine=null
diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py
index 70ff4371..c3091b68 100755
--- a/t/run-fio-tests.py
+++ b/t/run-fio-tests.py
@@ -1246,6 +1246,15 @@ TEST_LIST = [
         'pre_success':      None,
         'requirements':     [],
     },
+    {
+        'test_id':          28,
+        'test_class':       FioJobTest,
+        'job':              't0028-c6cade16.fio',
+        'success':          SUCCESS_DEFAULT,
+        'pre_job':          None,
+        'pre_success':      None,
+        'requirements':     [],
+    },
     {
         'test_id':          1000,
         'test_class':       FioExeTest,



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux