Issue Number: 700620a
| Issue | There was an issue where out-of-bounds array reading occurred under certain conditions, causing a memory access error. |
| Cause | This issue occurred after applying patch 342643, which was implemented to utilize the meta information of user bind parameters in plan generation. In the current operation, the meta check process of SQL fills the meta information of bind parameters using the meta of user bind parameters. The conditions under which the problem occurs are as follows. - When static SQL used inside PSM includes user bind parameters In such situations, the meta of the static SQL's user bind parameters is filled based on the PSM's user bind parameter information. As a result, values different from the user's intended meta may be set, or in some cases, memory access errors may occur. |
| Solutions | Static SQL inside the PSM performs meta checks at both the PSM compile time and runtime. The problematic case was limited to the meta check performed during the PSM compile stage. Accordingly, the meta check process performed during PSM compile has been modified not to use the meta information of user bind parameters. Since the actual plan is not generated during the PSM compile stage, this change does not cause any functional differences. |