2019-12-10 13:52 EST


View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003032FSSCPpublic2014-04-18 07:17
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version3.7.1 
Target Version3.7.2Fixed in Version3.7.2 
Summary0003032: AddressSanitizer: SEGV on unknown address 0x00000000f000 in texture_info::LoadTexture()
DescriptionERROR: AddressSanitizer: SEGV on unknown address 0x00000000f000 (pc 0x7fff8f6ba732 sp 0x7fff5fbf3d80 bp 0x7fff5fbf3d80 T0)
    #0 0x7fff8f6ba731 in strlen (in libsystem_c.dylib) + 17
    0000001 0x1055e83e9 in wrap_strlen _asan_rtl_
    0000002 0x10128c85b in std::char_traits<char>::length char_traits.h:258
    0000003 0x10128bf5f in std::basic_string<char, std::char_traits<char>, SCP_vm_allocator<char> >::append basic_string.h:837
    0000004 0x1012722ec in std::basic_string<char, std::char_traits<char>, SCP_vm_allocator<char> >::operator+= basic_string.h:782
    0000005 0x101e22492 in vsprintf parselo.cpp:3747
    0000006 0x101b5a8c4 in outwnd_printf2 outwnd_unix.cpp:168
    0000007 0x101549fe8 in texture_info::LoadTexture modelinterp.cpp:4875
    0000008 0x10144b6bc in model_load_texture modelread.cpp:2382
    0000009 0x101442d92 in read_model_file modelread.cpp:2083
    0000010 0x10144e3e4 in model_load modelread.cpp:2498
    ...

int texture_info::LoadTexture(char *filename, char *dbg_name = "<UNKNOWN>")
{
    if (strlen(filename) + 4 >= NAME_LENGTH) //Filenames are passed in without extension
    {
        mprintf(("Generated texture name %s is too long. Skipping...\n")); << HERE
        return -1;
    }
    this->original_texture = bm_load_either(filename, NULL, NULL, NULL, 1, CF_TYPE_MAPS);
    if(this->original_texture < 0)
        nprintf(("Maps", "For \"%s\" I couldn't find %s.ani\n", dbg_name, filename));
    this->ResetTexture();

    return texture;
}
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0015702

Echelon9 (developer)

Naughty The_E, https://svn.icculus.org/fs2open?view=rev&revision=8341

~0015703

Echelon9 (developer)

Resolved in SVN commit 10567
https://svn.icculus.org/fs2open?view=rev&revision=10567
+Notes

-Issue History
Date Modified Username Field Change
2014-04-18 06:53 Echelon9 New Issue
2014-04-18 06:53 Echelon9 Status new => assigned
2014-04-18 06:53 Echelon9 Assigned To => Echelon9
2014-04-18 07:00 Echelon9 Note Added: 0015702
2014-04-18 07:17 Echelon9 Note Added: 0015703
2014-04-18 07:17 Echelon9 Status assigned => resolved
2014-04-18 07:17 Echelon9 Fixed in Version => 3.7.2
2014-04-18 07:17 Echelon9 Resolution open => fixed
+Issue History