** Description changed:

  Valgrind complains about Uninitialized Memory Read in Ecere FileDialog
- 
- An if statement was badly written, and has been reordered to solved the
- issue.
+ - The exists variable has been initialized to 0.
+ - The return value of stat() is now being been checked
  
  [Test Case]
- Run the Ecere IDE in Valgrind, Bring up the FileDialog (Ctrl-O), Browse to 
+ Run the Ecere IDE in Valgrind, Bring up the FileDialog (Ctrl-O), Browse to
  Enter an asterisk (*) in the File Name edit box and hit enter, Notice the 
errors:
  
  ==4696== Conditional jump or move depends on uninitialised value(s)
  ==4696==    at 0x4150ECE: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x4151C6B: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x40F3DCA: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x40F240F: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x418C860: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x418CA11: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x415E4FE: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x41609A4: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x4172015: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x4199034: ??? (in /usr/lib/libecere.so.0.44)
  ==4696==    by 0x80E8B86: ??? (in /usr/bin/ide)
  ==4696==    by 0x412C6E5: ??? (in /usr/lib/libecere.so.0.44)
- ==4696== 
+ ==4696==
  
  [Regression Potential]
- This is a very trivial and safe fix, the if conditions have been reordered so 
that lazy evaluation prevents the UMR.
+ This is a very trivial and safe fix.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1107852

Title:
  [SRU] Valgrind complains about Uninitialized Memory Read in Ecere
  FileDialog

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ecere-sdk/+bug/1107852/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to