Fix possible realloc overflow for gpgsm and uiserver engines.
[gpgme.git] / src / engine-uiserver.c
index bd140f9..a7184b7 100644 (file)
@@ -698,7 +698,7 @@ status_handler (void *opaque, int fd)
              else
                {
                  *aline = newline;
-                 uiserver->colon.attic.linesize += linelen + 1;
+                 uiserver->colon.attic.linesize = *alinelen + linelen + 1;
                }
            }
          if (!err)
@@ -1340,5 +1340,6 @@ struct engine_ops _gpgme_engine_ops_uiserver =
     uiserver_cancel,
     NULL,              /* cancel_op */
     NULL,               /* passwd */
-    NULL                /* set_pinentry_mode */
+    NULL,                /* set_pinentry_mode */
+    NULL                /* opspawn */
   };