diff options
author | Harald Anlauf <anlauf@gmx.de> | 2025-09-26 19:20:39 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2025-09-26 19:20:39 +0200 |
commit | e6b4908c0402635c05e98bb1add0c4eaac44a02b (patch) | |
tree | e26b84a54f7ce75133101592ef712346ad2d8bba /gcc/config/avr | |
parent | 40d9e9601a1122749b21b98b4c88029b2402ecfc (diff) | |
download | gcc-e6b4908c0402635c05e98bb1add0c4eaac44a02b.zip gcc-e6b4908c0402635c05e98bb1add0c4eaac44a02b.tar.gz gcc-e6b4908c0402635c05e98bb1add0c4eaac44a02b.tar.bz2 |
Fortran: fix uninitialized read in testcase gfortran.dg/pdt_48.f03
Running the testcase using valgrind --leak-check=full --track-origins=yes:
==28585== Conditional jump or move depends on uninitialised value(s)
==28585== at 0x400E19: MAIN__ (pdt_48.f03:48)
==28585== by 0x400EDB: main (pdt_48.f03:34)
==28585== Uninitialised value was created by a heap allocation
==28585== at 0x4841984: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==28585== by 0x400975: __pdt_m_MOD_add (pdt_48.f03:30)
==28585== by 0x400D84: MAIN__ (pdt_48.f03:44)
==28585== by 0x400EDB: main (pdt_48.f03:34)
The cause was a partial initialization of a vector used in a subsequent
addition. Initialize the remaining elements of the first vector by zero.
gcc/testsuite/ChangeLog:
* gfortran.dg/pdt_48.f03:
Diffstat (limited to 'gcc/config/avr')
0 files changed, 0 insertions, 0 deletions