summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorKlearchos Chaloulos <klearchos.chaloulos@nokia.com>2016-04-22 21:04:17 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-22 14:04:17 -0400
commit9ba37525d0ef3d144a50ed5fd4710573e92b7ec1 (patch)
treef412d7ce081653cc095be1d9e1df9168c8e3d712 /src/machine
parent47cb7f723a492f9f3e8bd80c1615949a4ec505b3 (diff)
journal-remote : Ensure reallocation of source->buf does not result in source->size < source->filled (#3086)
While the function journal-remote-parse.c:get_line() enforces an assertion that source->filled <= source->size, in function journal-remote-parse.c:process_source() there is a chance that source->size will be decreased to a lower value than source->filled, when source->buf is reallocated. Therefore a check is added that ensures that source->buf is reallocated only when source->filled is smaller than target / 2.
Diffstat (limited to 'src/machine')
0 files changed, 0 insertions, 0 deletions