Please report this, where you downloaded that package versions, closing here in Debian.

On 28.10.23 08:57, rhys wrote:
Package: gcc-12
Version: 12.2.0-14+rpi1
Severity: normal
X-Debbugs-Cc: rmor...@web.de

Dear Maintainer,

Following code:

#include <stdio.h>

char myBuf[] = { '\x01', '\x04', '\x31', '\x00', '\x00', '\x1D', '\x7E', '\xF7' 
};

void process_buffer (char *);

int main (int argc, char **argv) {
     printf ("sizeof (myBuf) = %d\n", sizeof (myBuf));

     process_buffer (myBuf);
}

void process_buffer (char *bufPtr) {
     printf ("sizeof (bufPtr) = %d\n", sizeof (bufPtr));
}

produces following output:

sizeof (myBuf) = 8
sizeof (bufPtr) = 4

expected output (confirmed on Oracle Linux 8.4):

sizeof (myBuf) = 8
sizeof (bufPtr) = 8



-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
Architecture: armv6l

Reply via email to