Menu

#415 Using uninitialised val : compareIntVal() (DataType.cxx:820)

V2.1 Beta
open
leak (188)
5
2009-02-05
2009-01-30
No

i have run ( sql / Join / join6.sql ) with valgrind tool as
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
createt1t2.sql
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes csql -s
join6.sql
and found memory leakage as follows.
==15863== Use of uninitialised value of size 4
==15863== at 0x4026D41: AllDataType::compareIntVal(void*, void*, ComparisionOp) (DataType.cxx:820)
==15863== by 0x4028BE7: AllDataType::compareVal(void*, void*, ComparisionOp, DataType, long) (DataType.cxx:769)
==15863== by 0x402E319: PredicateImpl::evaluate(bool&) (PredicateImpl.cxx:296)
==15863== by 0x403C9E9: JoinTableImpl::fetch() (JoinTableImpl.cxx:306)
==15863== by 0x405CD31: SelStatement::fetchAndPrint(bool) (SelStatement.cxx:750)
==15863== by 0x406597C: SqlStatement::fetchAndPrint(bool) (SqlStatement.cxx:151)
==15863== by 0x804975C: getInput(bool) (isql.cxx:342)
==15863== by 0x8049B11: main (isql.cxx:109)

Discussion

  • Nihar Ranjan paital

    refer test / sql / Join / test006.ksh

     
  • Nihar Ranjan paital

    • assigned_to: nobody --> niharlcp1
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.