[Info-vax] New VSI blog post

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Tue Jul 30 08:25:39 EDT 2024


On 2024-07-29, John Reagan <johnrreagan at earthlink.net> wrote:
>
> Other 
> than bugs in the compilers and OS, the most common issue I've seen is a 
> mismatch of 32/64 bit variables.  I've seen 20 or so instance of code 
> that is doing a 64-bit write into a 32-bit variable.
[snip]
> It mostly has been in BLISS and C code.

I don't know enough about BLISS to make a judgement about how bad the
code that does this is, but I would be very interested to see the C code
that makes this possible.

Without an obviously incorrect explicit type conversion (which is a serious
bug in the user's C code), I am not seeing how this is possible under C
as the compiler should generate the appropriate size-conversion code
automatically if you assign from a 64-bit variable into a 32-bit variable.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list