Bug 2255206

Summary: community-mysql: int-conversion type error in memcached
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: community-mysqlAssignee: Florian Weimer <fweimer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, ljavorsk, mmuzila, mschorm
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: community-mysql-8.0.35-2.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-19 15:35:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2141798    

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