[14/27] Add missing copyrights in newlib/libc/ssp

Message ID 20200205064844.929131-15-keithp@keithp.com
State New
Headers show
Series
  • Add missing copyright information to many files
Related show

Commit Message

Keith Packard Feb. 5, 2020, 6:48 a.m.
Signed-off-by: Keith Packard <keithp@keithp.com>

---
 newlib/libc/ssp/mempcpy_chk.c     | 25 +++++++++++++++++++++++++
 newlib/libc/ssp/stack_protector.c |  1 +
 2 files changed, 26 insertions(+)

-- 
2.25.0

Patch

diff --git a/newlib/libc/ssp/mempcpy_chk.c b/newlib/libc/ssp/mempcpy_chk.c
index fc2ccf894..d141acf33 100644
--- a/newlib/libc/ssp/mempcpy_chk.c
+++ b/newlib/libc/ssp/mempcpy_chk.c
@@ -1,3 +1,28 @@ 
+/*
+Copyright (c) 2006 The NetBSD Foundation, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+ */
 #define _GNU_SOURCE
 #include <sys/cdefs.h>
 #include <ssp/ssp.h>
diff --git a/newlib/libc/ssp/stack_protector.c b/newlib/libc/ssp/stack_protector.c
index cd51543f0..a350d12a4 100644
--- a/newlib/libc/ssp/stack_protector.c
+++ b/newlib/libc/ssp/stack_protector.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2017 Yaakov Selkowitz <yselkowi@redhat.com> */
 #include <sys/cdefs.h>
 #include <sys/param.h>
 #include <signal.h>