[Spice-commits] 2 commits - server/display-channel.c server/image-cache.c spice-common
Frediano Ziglio
fziglio at kemper.freedesktop.org
Wed Nov 8 15:25:43 UTC 2017
server/display-channel.c | 2 +-
server/image-cache.c | 2 +-
spice-common | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 3269451ae6395d281575e6acc4858b59a969f254
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Nov 8 14:15:35 2017 +0000
Use constant variables for image operations
This reduce the attack surface moving some data into read-only
sections.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/display-channel.c b/server/display-channel.c
index e91265de..ad346c93 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -2262,7 +2262,7 @@ static void drawables_init(DisplayChannel *display);
static void
display_channel_init(DisplayChannel *self)
{
- static SpiceImageSurfacesOps image_surfaces_ops = {
+ static const SpiceImageSurfacesOps image_surfaces_ops = {
image_surfaces_get,
};
diff --git a/server/image-cache.c b/server/image-cache.c
index 3493ba1f..bc62938e 100644
--- a/server/image-cache.c
+++ b/server/image-cache.c
@@ -115,7 +115,7 @@ static pixman_image_t *image_cache_get(SpiceImageCache *spice_cache, uint64_t id
void image_cache_init(ImageCache *cache)
{
- static SpiceImageCacheOps image_cache_ops = {
+ static const SpiceImageCacheOps image_cache_ops = {
image_cache_put,
image_cache_get,
};
commit ef166f3158825bd0d0f4725f86cc91cc1b61b0c4
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Nov 8 14:14:00 2017 +0000
build: Update spice-common submodule
Frediano Ziglio (6):
Make the compiler work out better way to write unaligned memory
test-marshallers: Use unaligned structure
test-marshallers: Test demarshalling
ring: Remove __ring_remove function
ring: Remove short living temporary variable
canvas_base: Allow to specify constant operations
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/spice-common b/spice-common
index 70d4739c..45e28448 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit 70d4739ce2f90f904fa96e22e438e9b424a3dd42
+Subproject commit 45e2844845242b32b2bd8956da0dfffa91c0d856
More information about the Spice-commits
mailing list