When trying to use the Allinger atomic radii through the PCMInput struct, you overflow the buffer of size 8, since a null-termination character is also needed. I.e. the line:
std::strcpy(input.radii_set, "allinger");
results in a buffer overflow.
NB: This only occurs when compiling in Release mode.
Possible Solution
Change the size of PCMInput::radii_set to 9.
Steps to Reproduce (for bugs)
Make a C interface like the one in test/C_host and change the radii set to "allinger".
Compile PCMSolver in release mode (-DCMAKE_BUILD_TYPE=Release).
When trying to use the Allinger atomic radii through the
PCMInput
struct, you overflow the buffer of size 8, since a null-termination character is also needed. I.e. the line:std::strcpy(input.radii_set, "allinger");
results in a buffer overflow.NB: This only occurs when compiling in Release mode.
Possible Solution
Change the size of
PCMInput::radii_set
to 9.Steps to Reproduce (for bugs)
test/C_host
and change the radii set to"allinger"
.-DCMAKE_BUILD_TYPE=Release
).Your Environment