-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix address sanitize reported stack-use-after-scope #1721
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ execute_process(COMMAND uname -p OUTPUT_VARIABLE HOST_ARCH) | |
string(TOLOWER ${HOST_ARCH} HOST_ARCH) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE RElEASE) | ||
set(CMAKE_BUILD_TYPE RELEASE) | ||
endif() | ||
|
||
string(TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE) | ||
|
@@ -50,7 +50,7 @@ elseif(${BUILD_TYPE} STREQUAL MINSIZEREL) | |
elseif(${BUILD_TYPE} STREQUAL RELWITHDEBINFO) | ||
set(LIB_BUILD_TYPE RELWITHDEBINFO) | ||
else() | ||
set(LIB_BUILD_TYPE RElEASE) | ||
set(LIB_BUILD_TYPE RELEASE) | ||
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") | ||
endif() | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code patch you provided appears to be correcting a typo in setting the CMAKE_BUILD_TYPE and LIB_BUILD_TYPE variables. Here are my observations and suggestions:
Overall, the code patch seems to address potential issues and improve consistency by ensuring that the build types are consistently set to "RELEASE" when not explicitly defined. However, without a complete understanding of the context and the rest of the code, it is difficult to provide a comprehensive review. It would be helpful to provide more details about the purpose and context of this code for a more accurate assessment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the provided code patch, there are a few changes made to the CMakeLists.txt file. Here's a brief code review:
Overall, the code changes seem to fix spelling errors related to the |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the code patch you provided, here's a brief code review:
jobs
section, there is a change related to theTest
step. Previously, it was commented out, but now it has been uncommented and its content modified.Test
step sets theworking-directory
to$github.workspace/build
and runs the following commands in that directory:CC
to/usr/local/opt/gcc@10/bin/gcc-10
.ctest -C ${env.BUILD_TYPE}
.Review suggestions:
Test
step, it appears there are no obvious bug risks based on the given context.--output-on-failure
or capturing the test output logs.Please note that without additional details or the complete context, it may not be possible to identify potential issues or improvements accurately.