Skip to content

Can the strtok function be used unsafely here? #207

@algorithmn

Description

@algorithmn

cellular_at_core.c:564
func: Cellular_ATGetSpecificNextTok

if( atStatus == CELLULAR_AT_SUCCESS )
{
dataStrlen = ( uint16_t ) strlen( *ppString );

  if( ( **ppString ) == ( *pDelimiter ) )
  {
      **ppString = '\0';
      tok = *ppString;
  }
  else
  {
      tok = strtok( *ppString, pDelimiter );
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions