A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-November/030372.html below:

[Python-Dev] bsddb3 imported

[Python-Dev] bsddb3 importedMartin v. Loewis martin@v.loewis.de
23 Nov 2002 19:13:24 +0100
Tim Peters <tim.one@comcast.net> writes:

> Not here.  In a debug build, it reliably crashes in the bowels of strcpy.
> My guess:
> 
> 	strcpy(buffer, hangul_syllables[L][0]);
> 
> can't always work because the hangul_syllables array contains NULL pointers
> in some entries instead of empty strings.  It blows up for me when L is
> pointing at the
> 
>     { 0,    "YI",  "S"  },
> 
> entry.  I'm proceeding on "a fix" to see whether s/0/""/g cures it.

Are you sure you are up-to-date? For that to happen, L must be 19.
Now, L is SIndex / NCount, where NCount is 588. So SIndex must be
atleast (588*19 =) 11172 (= SCount). However, SIndex is code-SBase,
so code must be atleast SBase+SCount. In that case, the entire if
statement should not be executed, because the if statement reads

    if (SBase <= code && code < SBase+SCount) {

It so happens that the fields which are NULL are never accessed.

Regards,
Martin



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