freebsd-ports/textproc/clucene/files/patch-src__contribs-lib__CLucene__highlighter__WeightedTerm.cpp
Jung-uk Kim 31a4a592a1 - Fix a buffer overflow in highlighter. [1]
- Apply upstream patches to plug a memory leak, etc.
- Move CLuceneConfig.cmake to DATADIR as other ports do.
- Fix several problems found by Clang and make it build cleanly.

Submitted by:	Kishore Ramareddy (kishore at niksun dot com)
		(initial version) [1]
2013-03-28 00:18:41 +00:00

11 lines
400 B
C++

--- src/contribs-lib/CLucene/highlighter/WeightedTerm.cpp.orig 2011-03-16 20:21:07.000000000 -0400
+++ src/contribs-lib/CLucene/highlighter/WeightedTerm.cpp 2013-03-27 16:51:33.000000000 -0400
@@ -73,7 +73,7 @@
* @param weight the weight associated with this term
*/
void WeightedTerm::setWeight(float_t weight) {
- this->_weight = _weight;
+ _weight = weight;
cachedHashCode = 0;
}