Changeset: 0d1d5ea7895e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0d1d5ea7895e
Modified Files:
        gdk/gdk_atoms.c
Branch: Jun2016
Log Message:

Check result of mnstr_read.


diffs (13 lines):

diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -500,7 +500,8 @@ bitToStr(char **dst, int *len, const bit
 static bit *
 bitRead(bit *a, stream *s, size_t cnt)
 {
-       mnstr_read(s, (char *) a, 1, cnt);
+       if (mnstr_read(s, (char *) a, 1, cnt) < 0)
+               return NULL;
        return mnstr_errnr(s) ? NULL : a;
 }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to