Unix Technical Forum

opencvs(1) unchecked allocation

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 09:35 AM
Jacek Masiulaniec
 
Posts: n/a
Default opencvs(1) unchecked allocation

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)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:17 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com