Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 31, 2023 Library code

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 1e8ec88fd5f3ab4b7bbd0119708d94fd64a4e7ad:

Enable crc32c accelleration for arm64 on OSX (2023-01-25 08:01:30 -0700)

are available in the Git repository at:

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

for you to fetch changes up to c6cade164bc7e35e95ba88f816be4f44475e4e23:

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

----------------------------------------------------------------
Vincent Fu (1):
lib/pattern: Fix seg fault when calculating pattern length

 lib/pattern.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

Diff of recent changes:

lib/pattern.c +2 -1
index 9be29af6..e31d4734 100644
@@ -386,7 +386,8 @@ static int parse_and_fill_pattern(const char *in, unsigned int in_len,
 		assert(filled);
 		assert(filled <= out_len);
 		out_len -= filled;
-		out     += filled;
+		if (out)
+			out     += filled;
 		total   += filled;
 
 	} while (in_len);