[Forensics-changes] [yara] 15/160: Performance improvement. Write a large chunk of data instead of many individual bytes.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit eb6c58a16f8bd10c40c2eacd8f45603917e3681d
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Feb 13 12:45:55 2015 +0100
Performance improvement. Write a large chunk of data instead of many individual bytes.
---
libyara/arena.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libyara/arena.c b/libyara/arena.c
index 47fd9bd..2d461d6 100644
--- a/libyara/arena.c
+++ b/libyara/arena.c
@@ -1020,7 +1020,7 @@ int yr_arena_save_stream(
header.version = ARENA_FILE_VERSION;
yr_stream_write(&header, sizeof(header), 1, stream);
- yr_stream_write(page->address, sizeof(uint8_t), header.size, stream);
+ yr_stream_write(page->address, header.size, 1, stream);
reloc = page->reloc_list_head;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list