hi,
this fixes overflow in rcs_print

regards,
Alex.
Fix buffer overflow in rcs_print

From: Alexey Starikovskiy <[email protected]>

Signed-off-by: Alexey Starikovskiy <[email protected]>
---

 src/libnml/rcs/rcs_print.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/libnml/rcs/rcs_print.cc b/src/libnml/rcs/rcs_print.cc
index 4650647..cd00fc7 100644
--- a/src/libnml/rcs/rcs_print.cc
+++ b/src/libnml/rcs/rcs_print.cc
@@ -437,7 +437,7 @@ int rcs_print(const char *_fmt, ...)
 	return EOF;
     }
     va_start(args, _fmt);
-    retval = vsprintf(temp_buffer, _fmt, args);
+    retval = vsnprintf(temp_buffer, 256, _fmt, args);
     va_end(args);
     if (retval == (EOF)) {
 	return EOF;
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to