Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/nvi/dist/ipc CID 113277: Add toctou annotation



details:   https://anonhg.NetBSD.org/src/rev/642ad2bcc9f4
branches:  trunk
changeset: 791654:642ad2bcc9f4
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 27 17:58:59 2013 +0000

description:
CID 113277: Add toctou annotation

diffstat:

 external/bsd/nvi/dist/ipc/ip_run.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r efe21be17d14 -r 642ad2bcc9f4 external/bsd/nvi/dist/ipc/ip_run.c
--- a/external/bsd/nvi/dist/ipc/ip_run.c        Wed Nov 27 17:55:46 2013 +0000
+++ b/external/bsd/nvi/dist/ipc/ip_run.c        Wed Nov 27 17:58:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_run.c,v 1.4 2013/11/26 19:12:46 joerg Exp $ */
+/*     $NetBSD: ip_run.c,v 1.5 2013/11/27 17:58:59 christos Exp $      */
 /*-
  * Copyright (c) 1996
  *     Rob Zimmermann.  All rights reserved.
@@ -143,6 +143,7 @@
                 * (debugging) nvi, run it, otherwise run the user's path,
                 * if specified, else run the compiled in path.
                 */
+               /* coverity[+toctou] */
                if (!pflag && stat("vi-ipc", &sb) == 0)
                        execvp("vi-ipc", argv);
                execvp(execp, argv);



Home | Main Index | Thread Index | Old Index