View Issue Details

IDProjectCategoryView StatusLast Update
0000536LDMud 3.3Efunspublic2018-01-29 22:57
ReporterGnomi Assigned ToGnomi  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformi686OSDebian GNU/LinuxOS Version4.0
Product Version3.3.713 
Fixed in Version3.3.717 
Summary0000536: strstr("", "") does not return 0.
Descriptionstrstr("", "") yields -1, because of the following code in mstring_mstr_n_str:

    if (start >= mstrsize(pStr))
        return NULL;

if ptxt is "" and start <= mstrsize(pStr) then it should return pStr instead.

Greetings,
Gnomi.
TagsNo tags attached.

Activities

Gnomi

2008-07-10 10:18

manager   ~0000718

Fixed in r2381 (same as r2358/Bug 0000509 now for strstr).

Issue History

Date Modified Username Field Change
2008-04-07 06:23 Gnomi New Issue
2008-06-30 05:02 Gnomi Status new => assigned
2008-06-30 05:02 Gnomi Assigned To => Gnomi
2008-07-10 10:18 Gnomi Status assigned => resolved
2008-07-10 10:18 Gnomi Fixed in Version => 3.3.717
2008-07-10 10:18 Gnomi Resolution open => fixed
2008-07-10 10:18 Gnomi Note Added: 0000718
2009-04-14 14:14 zesstra Project LDMud => LDMud 3.3
2010-11-16 10:42 Gnomi Source_changeset_attached => ldmud.git master df37d320
2018-01-29 19:59 Gnomi Source_changeset_attached => ldmud.git master df37d320
2018-01-29 22:57 Gnomi Source_changeset_attached => ldmud.git master df37d320