tracker r3032 - in trunk: . src/tracker-indexer
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3032 - in trunk: . src/tracker-indexer
- Date: Mon, 9 Mar 2009 11:29:27 +0000 (UTC)
Author: mr
Date: Mon Mar 9 11:29:27 2009
New Revision: 3032
URL: http://svn.gnome.org/viewvc/tracker?rev=3032&view=rev
Log:
* 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.
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/tracker-module-metadata-utils.c
Modified: trunk/src/tracker-indexer/tracker-module-metadata-utils.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-module-metadata-utils.c (original)
+++ trunk/src/tracker-indexer/tracker-module-metadata-utils.c Mon Mar 9 11:29:27 2009
@@ -481,7 +481,7 @@
}
/* 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]