Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-24788] Add defense code to prevent core dump due to uninitialized pointer variable in csql #4336

Merged
merged 1 commit into from
May 3, 2023

Conversation

airnet73
Copy link
Contributor

@airnet73 airnet73 commented May 2, 2023

http://jira.cubrid.org/browse/CBRD-24788

Purpose
In csql, a pointer variable was declared but not initialized.
Since these uninitialized variables have garbage values, using these variables can cause a core dump.
Since this variable is used only in the for loop, it must be declared and initialized in the for loop.

Implementation
N/A

Remarks
N/A

@airnet73 airnet73 requested review from kisoo-han and eido5 May 2, 2023 07:46
@airnet73 airnet73 self-assigned this May 2, 2023
@airnet73 airnet73 changed the title [CBRD-24788] A core dump occurs using an uninitialized pointer variable in csql [CBRD-24788] Add defense code to prevent core dump due to uninitialized pointer variable in csql May 3, 2023
@airnet73 airnet73 merged commit 8f28ae9 into CUBRID:develop May 3, 2023
airnet73 added a commit that referenced this pull request May 3, 2023
…core dump due to uninitialized pointer variable in csql (#4338)

http://jira.cubrid.org/browse/CBRD-24788

In csql, a pointer variable was declared but not initialized.
Since these uninitialized variables have garbage values, using these variables can cause a core dump.
Since this variable is used only in the for loop, it must be declared and initialized in the for loop.
airnet73 added a commit that referenced this pull request May 3, 2023
…core dump due to uninitialized pointer variable in csql (#4337)

http://jira.cubrid.org/browse/CBRD-24788

In csql, a pointer variable was declared but not initialized.
Since these uninitialized variables have garbage values, using these variables can cause a core dump.
Since this variable is used only in the for loop, it must be declared and initialized in the for loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants