qemu-e2k/ui
Daniel P. Berrangé 627ebec208 ui: correctly advance output buffer when writing SASL data
In this previous commit:

  commit 8f61f1c5a6
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Mon Dec 18 19:12:20 2017 +0000

    ui: track how much decoded data we consumed when doing SASL encoding

I attempted to fix a flaw with tracking how much data had actually been
processed when encoding with SASL. With that flaw, the VNC server could
mistakenly discard queued data that had not been sent.

The fix was not quite right though, because it merely decremented the
vs->output.offset value. This is effectively discarding data from the
end of the pending output buffer. We actually need to discard data from
the start of the pending output buffer. We also want to free memory that
is no longer required. The correct way to handle this is to use the
buffer_advance() helper method instead of directly manipulating the
offset value.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 20180201155841.27509-1-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-02-02 07:48:18 +01:00
..
keycodemapdb@10739aa260
shader
cocoa.m cocoa.m: Fix scroll wheel support 2018-01-18 10:09:34 +00:00
console-gl.c
console.c
curses_keys.h
curses.c
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
egl-context.c
egl-headless.c
egl-helpers.c
gtk-egl.c
gtk-gl-area.c
gtk.c ui: ignore hardware keycode 255 on win32 2018-01-25 15:02:00 +01:00
input-keymap.c ui: fix alphabetical ordering of keymaps 2018-01-29 09:35:43 +01:00
input-legacy.c
input-linux.c
input.c
keymaps.c
keymaps.h
Makefile.objs ui: convert GTK and SDL1 frontends to keycodemapdb 2018-01-25 15:02:00 +01:00
qemu-pixman.c
qemu-x509.h
sdl2-2d.c
sdl2-gl.c
sdl2-input.c ui: convert the SDL2 frontend to keycodemapdb 2018-01-25 15:02:00 +01:00
sdl2.c sdl: reorganize -no-frame support 2018-01-25 15:22:28 +01:00
sdl_keysym.h
sdl_zoom_template.h maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00
sdl_zoom.c
sdl_zoom.h
sdl.c ui: fix mixup between qnum and qcode in SDL1 key handling 2018-02-02 07:47:16 +01:00
shader.c
spice-core.c
spice-display.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
spice-input.c
trace-events ui: convert GTK and SDL1 frontends to keycodemapdb 2018-01-25 15:02:00 +01:00
vgafont.h
vnc_keysym.h
vnc-auth-sasl.c ui: correctly advance output buffer when writing SASL data 2018-02-02 07:48:18 +01:00
vnc-auth-sasl.h
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-ws.c
vnc-ws.h
vnc.c ui: convert VNC server to QIONetListener 2018-02-02 07:47:39 +01:00
vnc.h ui: convert VNC server to QIONetListener 2018-02-02 07:47:39 +01:00
x_keymap.c ui: convert GTK and SDL1 frontends to keycodemapdb 2018-01-25 15:02:00 +01:00
x_keymap.h ui: convert GTK and SDL1 frontends to keycodemapdb 2018-01-25 15:02:00 +01:00