MINOR: cli/debug: validate addresses using may_access() in "debug dev stream"
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 16:28:23 +0000 (18:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 16:38:00 +0000 (18:38 +0200)
commit2b5520da4728c87216b94f548f24adea085df4dc
tree41dcb666a39d9871816c8949fa4e4c405b2f9d5f
parent68680bb14e5e4b3f1c0245ab956e9aee669cdac0
MINOR: cli/debug: validate addresses using may_access() in "debug dev stream"

This function adds some control by verifying that the target address is
really readable. It will not protect against writing to wrong places,
but will at least protect against a large number of mistakes such as
incorrectly copy-pasted addresses.
src/debug.c