Commit 6a10e549 authored by Martyn James Russell's avatar Martyn James Russell

Fixed potential buffer overflow. Reported in

	* src/tracker-indexer/tracker-module-metadata-utils.c:
	(get_file_content): Fixed potential buffer overflow. Reported in
	https://bugs.launchpad.net/ubuntu/+source/tracker/+bug/339560.

svn path=/trunk/; revision=3032
parent 8c57b25a
2009-03-09 Martyn Russell <martyn@imendio.com>
* src/tracker-indexer/tracker-module-metadata-utils.c:
(get_file_content): Fixed potential buffer overflow. Reported in
https://bugs.launchpad.net/ubuntu/+source/tracker/+bug/339560.
2009-03-06 Michael Biebl <mbiebl@gmail.com>
* python/deskbar-handler/tracker-module.py:
......
......@@ -481,7 +481,7 @@ get_file_content (const gchar *path)
}
/* Set the NULL termination after the last byte read */
buf[TEXT_CHECK_SIZE - bytes_remaining] = '\0';
buf[buf_size - bytes_remaining] = '\0';
/* First of all, check if this is the first time we
* have tried to read the file up to the TEXT_CHECK_SIZE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment