wirepas/c-mesh-api

[BUG] WPC_get_app_config_data returns APP_RES_INVALID_VALUE when size is bigger than max_size

vladuttuhutintemo opened this issue · 1 comments

Describe the bug
WPC_get_app_config_data returns APP_RES_INVALID_VALUE when size is bigger than max_size.

Expected behavior
The error should be returned when the buffer is too small not when is too big. The fact that the buffer is bigger than needed should not be a problem.

Thanks for opening this bug!
Yes it is clearly a bug. Fix is on review.