CG_ParseCodInfo crash #9

Open
opened 2025-07-09 20:02:44 +00:00 by Future · 0 comments
Owner

0x1401BD53B

void __fastcall CG_ParseCodInfo(int localClientNum)
{
  int v1; // ebx
  const char *v2; // rdi
  const char *v3; // rax

  v1 = 139;
  do
  {
    v2 = CL_GetConfigString(v1 - 128);
    if ( !*v2 ) // crash here
      break;
    v3 = CL_GetConfigString(v1);
    if ( !dword_141646CA0 ) // cgs_t->localServer (cgsArray)
      Dvar_SetFromStringByNameFromSource(v2, v3, DVAR_SOURCE_SERVERCMD);
    ++v1;
  }
  while ( v1 - 139 < 128 );
}

s1-mod_0.0.1_20250709_213414.dmp

0x1401BD53B ``` void __fastcall CG_ParseCodInfo(int localClientNum) { int v1; // ebx const char *v2; // rdi const char *v3; // rax v1 = 139; do { v2 = CL_GetConfigString(v1 - 128); if ( !*v2 ) // crash here break; v3 = CL_GetConfigString(v1); if ( !dword_141646CA0 ) // cgs_t->localServer (cgsArray) Dvar_SetFromStringByNameFromSource(v2, v3, DVAR_SOURCE_SERVERCMD); ++v1; } while ( v1 - 139 < 128 ); } ``` [s1-mod_0.0.1_20250709_213414.dmp](/attachments/8f4b9e59-1bc7-406b-b5e3-f7ec9322fc81)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alterware/s1-mod#9
No description provided.