aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-04-25 16:32:17 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-04-25 16:32:17 +0000
commit84765a0df59b3fac0eb6dd436c02a7c3a5f945ab (patch)
treeefd0557dda9a7454d653db7276beac053232bd00 /library/cpp
parent1a6278f112a97dcd3374acf34e071638a256e2a5 (diff)
parent85a9051955b03ea4d9c836219820f292305df58e (diff)
downloadydb-84765a0df59b3fac0eb6dd436c02a7c3a5f945ab.tar.gz
Merge branch 'rightlib' into mergelibs-240425-1630
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/http/io/stream.cpp2
-rw-r--r--library/cpp/ytalloc/impl/core-inl.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index eb08fc9ce24..e4a00b54d9e 100644
--- a/library/cpp/http/io/stream.cpp
+++ b/library/cpp/http/io/stream.cpp
@@ -320,7 +320,7 @@ private:
p.KeepAlive = false;
}
}
- [[fallthrough]];
+ break;
HEADERCMP(header, "expect") {
auto findContinue = [&](const TStringBuf& s) {
if (strnicmp(s.data(), "100-continue", 13) == 0) {
diff --git a/library/cpp/ytalloc/impl/core-inl.h b/library/cpp/ytalloc/impl/core-inl.h
index ba5128bd8d7..5a4f6a260b8 100644
--- a/library/cpp/ytalloc/impl/core-inl.h
+++ b/library/cpp/ytalloc/impl/core-inl.h
@@ -251,7 +251,7 @@ void AssertBlobState(T* header, E expectedState)
auto actualState = header->State;
if (Y_UNLIKELY(actualState != expectedState)) {
char message[256];
- sprintf(message, "Invalid blob header state at %p: expected %" PRIx64 ", actual %" PRIx64,
+ snprintf(message, sizeof(message), "Invalid blob header state at %p: expected %" PRIx64 ", actual %" PRIx64,
header,
static_cast<ui64>(expectedState),
static_cast<ui64>(actualState));
@@ -2678,7 +2678,7 @@ public:
auto actualState = state;
if (Y_UNLIKELY(actualState != expectedState)) {
char message[256];
- sprintf(message, "Invalid small chunk state at %p: expected %" PRIx8 ", actual %" PRIx8,
+ snprintf(message, sizeof(message), "Invalid small chunk state at %p: expected %" PRIx8 ", actual %" PRIx8,
ptr,
static_cast<ui8>(expectedState),
static_cast<ui8>(actualState));