[New-bugs-announce] [issue30242] resolve undefined behaviour in struct

Xiang Zhang report at bugs.python.org
Wed May 3 00:30:53 EDT 2017


New submission from Xiang Zhang:

In struct there are several places using code like:

  p[--i] = (char)x;

to extract the least significant byte from a long. Although this behaviour seems to apply to common implementations but it does not conform to C standard.

----------
components: Library (Lib)
messages: 292836
nosy: mark.dickinson, meador.inge, serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: resolve undefined behaviour in struct
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30242>
_______________________________________


More information about the New-bugs-announce mailing list