EdwardTim / eventlog-to-syslog

Automatically exported from code.google.com/p/eventlog-to-syslog
0 stars 0 forks source link

Access Violation in support.c:GetTimeStamp():strncpy_s() when built with VS2010++ Express #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build with VS2010++ Express
2. Debug

What is the expected output?

Application starts normaly.

What do you see instead?

AccessViolation occurs.

What version of the product are you using? On what operating system?

Latest 4.0 on Windows XP

Please provide any additional information below.

It seems to be a problem with the timestamp variable. Removing the declaration 
and replacing it in Global Space with:

  char timestamp[16];

Allows the application to start.

Original issue reported on code.google.com by stefan.v...@netzwerk.de on 7 Dec 2010 at 3:47

GoogleCodeExporter commented 8 years ago
Strange, I will test this and let you know what I find. Is this a 32bit XP 
machine? What service pack are you using?

Original comment by sherwin....@gmail.com on 14 Dec 2010 at 7:43

GoogleCodeExporter commented 8 years ago
AFAICT this is a 32Bit Machine, XP SP3.

Maybe some Stack Access Protection Thingy?

Original comment by stefan.v...@netzwerk.de on 15 Dec 2010 at 8:46

GoogleCodeExporter commented 8 years ago
I wrote that function a long time ago rather hastily. I will fix this for the 
next release, there is no reason it should be static *

Original comment by sherwin....@gmail.com on 10 Jan 2011 at 4:23

GoogleCodeExporter commented 8 years ago

Original comment by sherwin....@gmail.com on 1 Aug 2011 at 3:45