This is a discussion on opencvs(1) unchecked allocation within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Index: client.c ================================================== ================= RCS file: /OpenBSD/src/usr.bin/cvs/client.c,v retrieving revision 1.111 diff -u -r1.111 client.c --- client.c 9 Mar 2008 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Index: client.c ================================================== ================= RCS file: /OpenBSD/src/usr.bin/cvs/client.c,v retrieving revision 1.111 diff -u -r1.111 client.c --- client.c 9 Mar 2008 03:32:01 -0000 1.111 +++ client.c 6 Apr 2008 22:16:51 -0000 @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.111 2008/03/09 03:32:01 joris Exp $ */ +/* $OpenBSD: client.c,v 1.110 2008/03/09 00:36:30 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -318,7 +318,8 @@ struct cvs_req *req; va_start(ap, fmt); - vasprintf(&data, fmt, ap); + if (vasprintf(&data, fmt, ap) == -1) + fatal("vasprintf: %s", strerror(errno)); va_end(ap); if ((s = strchr(data, ' ')) != NULL) |