smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
239 stars 245 forks source link

SupportedDiagModes value is not truncated in case array has out of bound size #3934

Open GetmanetsIrina opened 2 years ago

GetmanetsIrina commented 2 years ago

Bug Report

SupportedDiagModes value is not truncated in case array has out of bound size

Reproduction Steps
  1. Change value in smartdeviceLink.ini file: SupportedDiagModes contains 101 elements
  2. Start SDL
  3. Register application
Expected Behavior

SDL sends SupportedDiagModes array with 100 elements in RAI response

Observed Behavior

SDL sends SupportedDiagModes array with 101 elements in RAI response

OS & Version Information
Logs

logs.zip

GetmanetsIrina commented 2 years ago

This issue relates to https://github.com/smartdevicelink/sdl_core/issues/2451