Your point is valid, the post was made on an understanding that antivirus software requires a known signature to detect viruses and trojans.
RichardBrock
Posts
-
Security consideration -
Security considerationThink about this scenario - someone signs up to codeproject using a gmail address and an arbitrary username. The person then posts an article about a new MFC control, for example a pure win32 Ribbon control that does not require any .net components. The source code contains intentional omissions that make it impossible to compile because the real objective is to get as many people as possible to download the demo executable and run it. The executable installs a trojan or SSH tunnel giving the author full access to the victims computer, allowing for theft of source code, documents, emails etc. Antivirus won't detect the break in, a personal firewall might, I guess it depends on how good the author is at coding. My point is - perhaps there is a rather wide open back door via article demo's - and I am in no way suggesting that it's the responsibility of codeproject to police uploads, just merely raising the concern.
-
Climate chief, recent warming not statisticaly significant.And spewing outright hatred mixed with really bad language is somehow ok. I guess you just have to be in the right click it's all ok. I'm kind curious to read his original post, I'm with digitalman on this one.
-
Considering a 1 year move to JohannesburgSafety: 1. Make sure you are covered with sufficient health care to ensure care by private institutions. 2. When you are home, always lock outside gates and doors. I get weekly police reports for the area and most house invasions occur because the victims left a door/gate open. 3. When you are out and about, heep an eye on your wallet, phone and kids and forget the rest. 4. Never leave anything on your car seats when you are driving, slow down when approaching intersections and try to time the green light, watch for smash and grab from the bushes. 5. This is africa, human rights mean nothing, human life is really cheap so be street wise. 6. Don't get upset with people on the road, people here are on the freakin edge. Accomodation: About R9000 per month for a cluster home in secure complex. Complexes are great, they have garden service, some form of security and nosey neighbours, and you can go for walk in the complex without worrying about getting mugged. Public transport: You can choose between taxis that are driven by psychopathic half wits or you can go a bus that is driven by a psychopathic half wit that used to drive a taxi. Hardly reliable or safe, get a car. Schooling: We pay R2400 per month for our daughter to attend private school, not particularly posh though. If you want a really good private school you're looking at R4500 an up. Kindergarden cost us about R1000 per month.
-
Webinar technologies?What makes gotomeeting great is that you can bring someone in with a simple URL and an access code, no complex URL required. Good software.
-
MultiByteToWideChar crashes out on longer strings [modified]The project outputs a 32 bit Windows executable (target platforms are XP and Vista), MFC linked is static. I tried _tcslen as you suggested, same result. I'm testing from a live RSS feed, so the news item length has changed but here's the latest output from my outputdebugstring placed just after the 2nd MultiByteToWideChar call. 'return value = 140 (wcslen is 308) nSizeReq = 140 nBlockLength = 140' so you can see the function call returns 140, the buffer allocated was 140 and the block length read from the file is 140. But the converted string is 308 in length, obviously overruning memory allocated to it. Do you think compiler optimization could be causing a problem? I'm compiling with 'Enable link-time code generation (/GL)'. Btw, a previous call for the preceding news item yields: 'return value = 121 (wcslen is 121) nSizeReq = 121 nBlockLength = 121'
-
MultiByteToWideChar crashes out on longer strings [modified]I have a file open using CreateFile, I use ReadFile to locate the start and end tags in the XML file for the field, e.g. <description>.....</description> (Internet RSS news feed in Arabic). The nBlockLength indicates the number of characters extracted between > and <, the m_pChars buffer holds the actual character data.
-
MultiByteToWideChar crashes out on longer strings [modified]Yep, you make a good point, I updated the code to check the value: int nSizeReq = MultiByteToWideChar(m_nCPID,0,(const char* m_pChars,nBlockLength,0,0); TCHAR* pszConverted = new TCHAR[nSizeReq+1]; _tcsnset(pszConverted,0,nSizeReq+1); int nConverted = MultiByteToWideChar(m_nCPID, 0, (const char*)m_pChars,nBlockLength, pszConverted, nSizeReq); int nTest = wcslen(pszConverted); the results: nConverted = 214. nSizeReq = 214, but nTest = 206. Weird.
-
MultiByteToWideChar crashes out on longer strings [modified]I've got a code segment below that converts the block of chars read in from an RSS XML file and converts it to the unicode equivalent using a code page (the code page ID is determined beforehand by scanning for the the encoding ID in the XML). Sometimes it works, sometimes it crashes the application. I'm using the buffer requirement returned by 'MultiByteToWideChar' to allocate the buffer required (+1 because the block of chars I'm passing does not include the 0 terminator). What's really odd is that on small strings it works fine, but on a 216 character string it crashes. If I extend the buffer allocation by 1 then it works all the time. I should not have to kludge buffer allocation to make things work. int nSizeReq = MultiByteToWideChar(m_nCPID,0,(const char* m_pChars,nBlockLength,0,0); TCHAR* pszConverted = new TCHAR[nSizeReq+1]; _tcsnset(pszConverted,0,nSizeReq+1); MultiByteToWideChar(m_nCPID, 0, (const char*)m_pChars,nBlockLength, pszConverted, nSizeReq); //up to here it always works, but the next step crashes because pszConverted has damage //past its memory allocation CString strConverted = pszConverted Any ideas why this could be happening? ps. it runs just great in debug, and if I run it in release mode whilst in visual studio it also works. Run the release by itself and *boom* [edit] Coded in C++ (MFC application) using Visual Studio 2008 Unicode is defined Testing on Vista.
modified on Friday, March 13, 2009 10:51 AM
-
GPLI recommend reading Open Source & Free Software Licensing by Andrew M. St. Laurent, ISBN 0-596-00581-4, he takes apart the GPL and other open source licenses section by section whilst remaining an easy read.
-
GPL for DLL's?I guess whatever makes sense for both the end user and the commercial entity. If his answer went along the lines of what Mr Brickley said, I'd be happy with that. Just simply stating that your product would need to be released under the GPL is nuts, that underscores the thinking that the GPL is something like a virus, to protect my company I would have to encrypt my API. Thanks to all for the input, definitely creates some clarity around the issue.
-
GPL for DLL's?Good point, rather obvious now that you've put it that way.
-
GPL for DLL's?Hi, I asked someone at the Free Software Foundation this question, wasn't entirely satisfied with the answer and was really keen to get the input from CP members. Let's say that I develop a commercial product using my own code and I provide an API that allows the end user to develop plugin DLL's for various integration tasks. If the end user develops a plugin that essentially wraps GPL'ed code (maybe he found GPL code that does what he wants it to do), is the entire product now subject to the GPL requirements or simply just the plugin DLL? I would guess that only the plugin needs to be published under the GPL, not the entire product. Your thoughts? Btw the FSF guy said the entire product must be released under the GPL.
-
Low level integration with GPL componentHi, Suppose a GPL'ed application includes an ActiveX control, if I use this control in my application, do i need to release my source code or my application under the GPL?
-
angle between two pointsgiven two coordinates, i.e. startx & starty, endx & endy: double dAngle = (180 * (1 + atan2(endy-starty, endx-startx) / PI))-90;
-
Laptop identify thru CodeSadly the value shows 128 when the battery is removed from the laptop, so that puts a kink in the idea, nevertheless, you could also validate the following registry keys to see if a battery service is installed or if pcmcia was installed: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BattC HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Pcmcia I'm out of the lab at the moment and unable to check if those keys are present on a PC.
-
Laptop identify thru CodeYou can use: SYSTEM_POWER_STATUS sps; GetSystemPowerStatus(&sps); if(sps.BatteryFlag==128) { // no battery present } else { // running on a battery } My laptop shows batteryflag = 1 even if I'm running on AC
-
Regarding TV Tuner card previewYour card is displaying its default input source which is probably composite. You must select the correct input source being either TV tuner, Composite or S-Video. If you select TV tuner, you will also need to specify whether you are tuning off a cable connection or an antenna. The software that comes with the WinFast allows you to do this (click on the small Spanner icon button) to tune the card. If you want to do it programmatically, well thats another story.