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

fix: Resolve crash issue during Apsara log parsing and integrate AddressSanitizer into debug build configuration #1253

Merged
merged 6 commits into from Dec 7, 2023

Conversation

yyuuttaaoo
Copy link
Collaborator

@yyuuttaaoo yyuuttaaoo commented Nov 30, 2023

When parsing apsara log, there will be a stack-buffer-overflow in function
logtail::LogParser::GetApsaraLogMicroTime(char const*) /workspaces/ilogtail-yyuuttaaoo/core/parser/LogParser.cpp which may lead to crash.
The issue is resolved by ensuring timeStr terminate with \0.
To prevent similar issues from recurring, address sanitizer has been added to the debug build configuration.

@yyuuttaaoo yyuuttaaoo changed the title [WIP]fix: crash when parsing apsara log fix: crash when parsing apsara log Dec 6, 2023
@yyuuttaaoo yyuuttaaoo changed the title fix: crash when parsing apsara log fix: crash when parsing apsara log and add address sanitizer to debug build Dec 6, 2023
@yyuuttaaoo yyuuttaaoo changed the title fix: crash when parsing apsara log and add address sanitizer to debug build fix: Resolve crash issue during Apsara log parsing and integrate AddressSanitizer into debug build configuration Dec 6, 2023
@yyuuttaaoo yyuuttaaoo merged commit e740f55 into alibaba:main Dec 7, 2023
17 checks passed
@yyuuttaaoo yyuuttaaoo added the bug Something isn't working label Dec 7, 2023
@yyuuttaaoo yyuuttaaoo added this to the v1.8 milestone Dec 7, 2023
yyuuttaaoo added a commit that referenced this pull request Dec 7, 2023
…essSanitizer into debug build configuration (#1253)

* fix: crash when parsing apsara log

* refine git workflow

* fix workflow go env

* fix workflow

* fix workflow name

* link tcmalloc if CMakeBuildType is not Debug
@yyuuttaaoo yyuuttaaoo deleted the fix/apsara_crash branch April 7, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants