Skip to content

CXXCBC-668: ensure random generator is initialized in websocket_codec#739

Merged
avsej merged 1 commit intocouchbase:mainfrom
avsej:CXXCBC-668-initialize-random-generator-in-websocket_codec
Mar 21, 2025
Merged

CXXCBC-668: ensure random generator is initialized in websocket_codec#739
avsej merged 1 commit intocouchbase:mainfrom
avsej:CXXCBC-668-initialize-random-generator-in-websocket_codec

Conversation

@avsej
Copy link
Copy Markdown
Member

@avsej avsej commented Mar 21, 2025

In some cases, when websocket_code is the first ever to touch RandomGenerator, the library might crash trying to dereference null pointer. It does not happen often, but in case of the one-shot applications it might happen (for example 'cbc get' from the tools)

In some cases, when websocket_code is the first ever to touch
RandomGenerator, the library might crash trying to dereference null
pointer. It does not happen often, but in case of the one-shot
applications it might happen (for example 'cbc get' from the tools)
@avsej avsej requested review from a team and thejcfactor March 21, 2025 15:44
@avsej avsej merged commit c6e2aa4 into couchbase:main Mar 21, 2025
24 of 26 checks passed
@avsej avsej deleted the CXXCBC-668-initialize-random-generator-in-websocket_codec branch March 21, 2025 18:33
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.

2 participants