Skip to content

20260316 upstream sync#2

Open
yekhlakov wants to merge 47 commits intomasterfrom
20260316-upstream-sync
Open

20260316 upstream sync#2
yekhlakov wants to merge 47 commits intomasterfrom
20260316-upstream-sync

Conversation

@yekhlakov
Copy link
Copy Markdown

No description provided.

supersmile2009 and others added 30 commits September 2, 2023 16:25
Unconditionally sudo apt-get update to get the latest package listing
which should correct issues with packages failing to install.
Conditionally enable ssl_socket methods that use the deprecated OpenSSL
ENGINE APIs. The APIs are enabled when the OpenSSL being compiled
against has the ENGINE APIs enabled. In addition these APIs can be
disabled by passing -DENABLE_SSL_ENGINE_API=OFF to CMake at build-time.

Fixed: alanxz#795
Fixed: alanxz#713

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Corrects bug where cmake fails on MacOS when building static-only
library with an error that looks like:

CMake Error at librabbitmq/CMakeLists.txt:143 (set_target_properties):
  set_target_properties Can not find target to add properties to: rabbitmq

Fixed: alanxz#796

Signed-off-by: GitHub <noreply@github.com>
Use the PROJECT_IS_TOP_LEVEL variable to determine whether the root
CMakeLists.txt file is the top-level file or a subproject of a larger
project. This is more readable than the hack that it replaces.

Signed-off-by: GitHub <noreply@github.com>
The decision to use this flag should be up to the user of this library.
If users need this functionality they can include this as a part of
CMAKE_C_FLAGS.

Signed-off-by: GitHub <noreply@github.com>
This library seems to now be installed, and the version installed by
chocolatey also seems to fail in a curious way.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Guybrush <miguel.barro@live.com>
Improved support for either OpenSSL or BoringSSL

Co-authored-by: John Harrison <johnh@quintar.ai>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
v2 uses a deprecated node dependency.

Signed-off-by: GitHub <noreply@github.com>
Recent versions of Clang on MacOS X seems to trigger a warning about
"function declaration without a prototype is deprecated in all versions
of C"

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
The function SSL_get_peer_certificate() was deprecated in 3.0.0. Now it is defined as a compatibility macro to SSL_get1_peer_certificate().

However if your OpenSSL 3 is not compiled with the deprecated API included, rabbitmq-c will fail to compile. This commit adds an OpenSSL version check to use the appropriated function.
* if amq not disconnect when return AMQP_STATUS_BAD_AMQP_DATA, maybe crash in consume_data when next receive data.

because it change state->target_size but not allocate state->inbound_buffer.

line 222 (bytes_consumed = consume_data(state, &received_data);)
* Adding a function to wait for publisher confirms
- Also added an example program to demo it
Signed-off-by: GitHub <noreply@github.com>
alanxz and others added 17 commits November 19, 2024 21:57
Signed-off-by: GitHub <noreply@github.com>
The exported `rabbitmq::*` targets don't have the correct include paths when `CMAKE_INSTALL_INCLUDEDIR` does not match `CMAKE_INSTALL_PREFIX/include`
* Add amqp_bytes_from_buffer function   - Introduced amqp_bytes_from_buffer to create amqp_bytes_t from a string of bytes with a specified length. - This function complements amqp_cstring_bytes by allowing more control over the length of the byte array.
Add check for malloc() failure to avoid NULL pointer dereference
when processing bytes. Returns NULL if allocation fails.

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Close opened file stream with fclose() to prevent resource leaks.

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
The calloc() can return NULL on memory allocation failure.
Add check to prevent NULL pointer dereference which would lead
to undefined behavior or crash. On failure print error and exit.

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Check malloc result before memcpy to avoid NULL pointer dereference

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Check malloc() return value before using body_bytes.bytes to prevent
NULL pointer dereference in fgets(). On allocation failure, print error
and exit gracefully.

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Check malloc result in consume_message to avoid NULL pointer dereference

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
* librabbitmq/codegen.py: remove unused loop variables

Remove unused 'v' and 'cls' from spec.constants iteration loop
where these variables served no purpose.

Remove unused 'v' from spec.constants iteration loop
where this variable served no purpose.

Signed-off-by: Maxim Tulskiy <tulskijms@altlinux.org>
Co-authored-by: Maxim Tulskiy <tulskijms@altlinux.org>
…lanxz#867)

* examples: show that you can pass amqp_bytes_t as function argument
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.