Bug 2255206 - community-mysql: int-conversion type error in memcached
Summary: community-mysql: int-conversion type error in memcached
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: community-mysql
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCNoUpstream
TreeView+ depends on / blocked
 
Reported: 2023-12-19 10:31 UTC by Florian Weimer
Modified: 2023-12-19 15:35 UTC (History)
4 users (show)

Fixed In Version: community-mysql-8.0.35-2.fc40
Clone Of:
Environment:
Last Closed: 2023-12-19 15:35:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2023-12-19 10:31:11 UTC
There is a type error in plugin/innodb_memcached/daemon_memcached/daemon/memcached.c that will result in build failures with GCC 14.

This patch should fix it:

diff -ur mysql-8.0.35.orig/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c mysql-8.0.35/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c
--- mysql-8.0.35.orig/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c	2023-10-12 13:45:01.000000000 +0200
+++ mysql-8.0.35/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c	2023-12-19 10:48:46.718006624 +0100
@@ -4070,7 +4070,7 @@
     do {
         while(key_token->length != 0) {
             /* whether there are more keys to fetch */
-            bool next_get = (key_token + 1)->value;
+            bool next_get = (key_token + 1)->value != NULL;
 
             key = key_token->value;
             nkey = key_token->length;


I don't know how to submit this upstream, so filing it here.

Reproducible: Always


Note You need to log in before you can comment on or make changes to this bug.