From 74bd787d4c460badcc235ce86024727960ba2634 Mon Sep 17 00:00:00 2001
From: Sid Kurella <mastersidkurella@gmail.com>
Date: Sun, 18 Jan 2015 21:14:42 -0500
Subject: [PATCH] CID 608995: Copy into fixed size buffer - added check
---
headers/private/media/ServerInterface.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/headers/private/media/ServerInterface.h b/headers/private/media/ServerInterface.h
index 13249eb..104a063 100644
a
|
b
|
public:
|
226 | 226 | { |
227 | 227 | device = ref.device; |
228 | 228 | directory = ref.directory; |
229 | | if (ref.name) |
| 229 | if (ref.name && sizeof(ref.name) <= sizeof(name)) |
230 | 230 | strcpy(name, ref.name); |
231 | 231 | else |
232 | 232 | name[0] = 0; |