]> source.dussan.org Git - tigervnc.git/commit
Prevent double free by crafted fences. 438/head
authorMichal Srb <michalsrb@gmail.com>
Mon, 27 Mar 2017 16:02:15 +0000 (19:02 +0300)
committerMichal Srb <michalsrb@gmail.com>
Mon, 27 Mar 2017 16:02:15 +0000 (19:02 +0300)
commitf3afa24da144409a3c3a0e35913112583d987671
tree3318ab59e016e6e55ec1b7d3135cc3f1f960c475
parent53f520567202928f908b5f94f6d143e7067a8bdd
Prevent double free by crafted fences.

If client sent fence with some data, followed by fence with no data (length 0), the original fence data were freed, but the pointer kept pointing at them. Sending one more fence would attempt to free them again.
common/rfb/SMsgWriter.cxx
common/rfb/VNCSConnectionST.cxx