1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/device_mapper
Peter Rajnoha 800436d2af libdm: report: fix escaping of JSON quote char in reported fields
Commit 73ec3c954b added a way to print
only a part of the report string (repstr) to support decoding individual
string list items out of repstr.

The repstr is normally printed through _safe_repstr_output so that any
JSON_QUOTE character ('"') found within the repstr is escaped to not
interfere with value quoting in JSON format.

However, the commit 73ec3c954b missed
checking the 'len' argument passed to _safe_repstr_output function when
adding the rest of the repstr after all previous JSON_QUOTE characters
were escaped (when calling the last dm_pool_grow_object). When 'len'
is 0, we need to calculate the 'len' ourselves in the function by
simply calling strlen. This is because 'len' is passed to the function
only if we're taking a part of repstr, not as a whole.
2022-08-24 12:10:10 +02:00
..
datastruct gcc: match types 2021-09-22 17:18:50 +02:00
ioctl devicemapper: add dm_task_get_device_list 2021-12-20 16:13:28 +01:00
misc devicemapper: in sync with libdm 2021-09-23 16:49:58 +02:00
mm gcc: use apropriate type for reading and printing values 2020-08-28 21:43:03 +02:00
regex build: get separate builddir working again 2018-06-04 13:22:14 +01:00
vdo vdo: report supported range in error path 2022-07-11 01:18:24 +02:00
all.h libdm: report: add DM_REPORT_GROUP_JSON_STD group 2022-08-11 11:10:11 +02:00
libdm-common.c devicemapper: in sync with libdm 2021-09-23 16:49:58 +02:00
libdm-common.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
libdm-config.c libdm-config: replace check for 0 2021-03-08 15:43:27 +01:00
libdm-deptree.c vdo: support v4 kernel target line 2022-07-11 01:18:24 +02:00
libdm-file.c debug: change sys_error to sys_debug 2021-03-10 01:11:52 +01:00
libdm-report.c libdm: report: fix escaping of JSON quote char in reported fields 2022-08-24 12:10:10 +02:00
libdm-string.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
libdm-targets.c Allow dm-integrity to be used for raid images 2020-04-15 12:10:32 -05:00
libdm-timestamp.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile makefiles: correcting login of makefile 2018-12-17 10:55:20 +01:00