A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/034944.html below:

[Python-Dev] Re: test_getargs2 failures (was: vacation)

[Python-Dev] Re: test_getargs2 failures (was: vacation)Neal Norwitz neal@metaslash.com
Wed, 23 Apr 2003 14:02:21 -0400
On Wed, Apr 23, 2003 at 07:48:06PM +0200, Thomas Heller wrote:
> Neal Norwitz <neal@metaslash.com> writes:
> 
> > Some test failures are:
> > 
> >         test_getargs2   Solaris 8, Mac OS X
> 
> It seems test_getargs2 fails on big endian platforms. Is the solaris 8
> such a machine?

I believe so.

> See also the comments I added to http://www.python.org/sf/724774.
>
> I have the impression that the test is broken. Should I try to fix it
> (difficult, without access to neither Mac or Solaris), or should it
> simply be deleted ;-)

I think getargs_ul() is broken.  For example, if the user passes more
than a single char as the format, memory will be scribbled on.  The
format should be checked to make sure it contains acceptable values
for getargs_ul() to be safe.

I fixed a similar problem in revision 1.23 of _testcapimodule.c.
See comment and code around line 330.

I'm not really sure of the purpose of _testcapimodule, so perhaps
the lack of error checking is acceptable?  I can fix the problems,
but not before the beta will go out.

Neal



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4