ty317@samsung.com; Marek Szyprowski; Robert Baldyga
> Subject: RE: [PATCH 3/6] libusbg: Remove fixed-size buffers from
> usbg_config.
>
> From: Krzysztof Opasiak
> > Path and name length should not be placed in constant
> > size buffer but in allocated memory.
> >
&
Path and name length should not be placed in constant
size buffer but in allocated memory.
Use also PATH_MAX macro from limits.h instead of internal
library macro. Handle overflows of snprintf in related funcitons.
Signed-off-by: Krzysztof Opasiak
---
include/usbg/usbg.h |1 +
src/usbg.c
From: Krzysztof Opasiak
> Path and name length should not be placed in constant
> size buffer but in allocated memory.
>
> Use also PATH_MAX macro from limits.h instead of internal
> library macro.
There might be some sense in keeping USBG_MAX_PATH_LENGTH
but defaulting to PATH_MAX.
...
> -
Path and name length should not be placed in constant
size buffer but in allocated memory.
Use also PATH_MAX macro from limits.h instead of internal
library macro. Handle overflows of snprintf in related funcitons.
Signed-off-by: Krzysztof Opasiak
---
include/usbg/usbg.h |1 +
src/usbg.c