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

enable ubsan #3452

Merged
merged 22 commits into from
Mar 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
Co-authored-by: A. Jiang <de34@live.cn>
fsb4000 and frederick-vs-ja committed Feb 14, 2023
commit 39ab09796f7ee7b40c48c7e21d84da52b54434ff
2 changes: 1 addition & 1 deletion tests/tr1/tests/streambuf1/test.cpp
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ class Mybuf : public STD streambuf {
}

void setp(char* p) { // set pptr
Mybase::setp(p, nullptr);
Mybase::setp(p, p);
}

char* getp() const { // get pptr
2 changes: 1 addition & 1 deletion tests/tr1/tests/streambuf2/test.cpp
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ class Mybuf : public STD wstreambuf {
}

void setp(wchar_t* p) { // set pptr
Mybase::setp(p, nullptr);
Mybase::setp(p, p);
}

wchar_t* getp() const { // get pptr