corruption

Malloc corrupting already malloc'd memory in C

I'm currently helping a friend debug a program of his, which includes linked lists. His list structure is pretty simple: typedef struct nodo{ int cantUnos; char* numBin; struct nodo* sig; }Nodo; We've got the following code snippet: void insNodo(Nodo** lista, char* auxBin, int auxCantUnos){ printf("*******Insertando\n"...

How do I corrupt a SQL CE Database?

I want to be able to check for a corrupted database at startup, and then repair it programmatically. I can do that easily enough. My problem is that I want to test that things work the way I expect. Does anyone know of a way to purposefully corrupt a database so I can test my code? ...

Displaying image with php

I have a script which displays images like this: header("Content-Type: image/{$ext}"); readfile($image->path); This has worked fine for weeks and now suddenly it has stopped working. The response header looks fine (Content-Type: image/jpg), I have no ending php-tag and I have made no changes to my code, server- or php-setup which could...

WMF image data validation?

There is an image capturing device which gives its output in wmf. This output is stored in the database directly. We have cases where at times some of these images do not appear on a web page in IE. But if we right click on the page we are able to save the image on to the hard disk; meaning the image does exist on the page, but does not ...

A Strange Problem in Heap Memory!

I found one thread of a multi-threaded application to be crashing in VxWorks. I don't have debug information. On deeper analysis I found that the crash is being caused due to a global memory address value being changed. This global memory address (which is an address to a function. I am using a function pointer) is being stored at a pa...

Does using msysgit lead to repository corruption?

While stumbling through the chromium code documentation, I came across this post: http://code.google.com/p/chromium/wiki/UsingGit#Windows If you are using msysgit, you are asking for trouble. Using both msysgit (including TortoiseGit) and cygwin's version of git is a path to lead to repository corruption so it's safer to s...

How to diagnose, and reverse (not prevent) Unicode mangling

Somewhere upstream of me, "something" happened that looks like unicode mangling. One symptom is that a lowercase u umlaut (ü) gets converted to "ü" (ie, character FC gets converted to C3 BC). Assuming that I have no control over this upstream process, how can I reverse-engineer what's going on? And if that is possible, can I crank the s...

Tracking EXC_BAD_ACCESS on iPad

I've been using this code to create my UIWindow UIMyWindow* win = [[UIMyWindow alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; UIMyWindow isn't anything special it just has a pointer to a C++ class that does some wrapping of ObjectiveC. Recently my application start crashing after adding some line ...

Open zip file with bad header using php

I have a zip file that is uploaded to my server daily. It seems that this zip file isn't formed properly because when I open it with my IZarc (my desktop zip application) it warns me that there is a bad zip header found. I can go ahead and open the file if I tell IZarc to go ahead and open it. When I attempt to open the file with PHP li...

Fear of Access Corruption: What's the best thing to do?

Yesterday when I was working on a module in Access 2003, when I closed it, Access crashed. I think what I had done was renamed the module. After reopening Access I saw the new renamed module, but got the ol' "The module name "..." is misspelled or refers to a module that doesn't exist" error. I am unable to open it in the Database Window...

How do I automatically compact and repair an Access 2007 database?

I have a site that uses classic ASP and a database in Access 2007 format (.accdb). It is encrypted with a password and is about 300 MiB in file size. The site works fine by itself but every now and then the database gets corrupted (the error is "unrecognized database format"). It can be fixed easily by opening the database in MS Access,...

g++ Double Free or corruption...But How??

Hi all, I seem to be having problems with my code and wondered if you guys could help me locate the problem...I have tried using gdb and valgrind, the latter being 'more' useful but still i am unable to fix my bug. Below is my code for my classes (This is my shrunk down version but the main essence of the problem persists): /* Vector....

realloc and free causes "double free or corruption"

Bear with me. I have not coded in c in 8 years and am totally baffled why my string manipulation is not working. I am writing a program that loops forever. In the loop I initialize two char pointers each is passed to a function that add text to the char pointer (array). When the functions are done I print the char pointer and free the tw...

Is the Silverlight 4 SDK download corrupted?

Hi, I downloaded the Silverlight 4 SDK (not the Beta) from the following Microsoft site. http://www.microsoft.com/downloads/details.aspx?familyid=55B44DA3-E5DE-4D2A-8EAF-1155CA6B3207&displaylang=en However, when I try to run the file, it says "File is corrupt". Has anyone else also faced this issue? Is there any other site fro...

Does ODBC access to external tables potentially result in corruption of data or locks?

I need to get data out of SQL Server2005 tables, and into another system. My vendors says: "We don´t recommend that you go directly in the SQL and collect data, because it can result in corruption of data or you can lock tables while exporting." Is that true? ...

weird stack corruption due to a dll call

I'm trying to make a call to a DLL function (via GetProcAddress etc) from C, using lcc compiler. The function gets called and everything goes well, but it looks like the top of the stack gets corrupted. I've tried to play with calling conventions (__stdcall / __cdecl), but that didn't help. Unfortunately I don't have access to the dll c...

C# Strong Naming of dll, not detecting modifications

It is my understanding that strong naming creates a cryptographic Hash of the a assembly to which is used as a strong name to load the dll. I was hoping to use this feature to detect corruption of a binary to inform the user there is a problem with the software and they need to reinstall it. This works for some changes to the binary,...

Difference between Static Corruption and Stack Corruption

Can anyone explain insights about the difference between Stack corruption and Static corruption ? ...

VS corrupted .sln file?

When I try to open my .sln file, Visual Studio quits on me. I can open it by opening up TFS, getting a specific version, choosing the latest version, forcing an overrwrite, opening up the .sln file, and then ignoring an 'incompatible doc message". However, I would like to know what's wrong and how it can be fixed, in case some day I can...

What's the Break instruction exception in windbg

I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, only find one error: 0:000> .exr -1 ExceptionAddress: 00000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0 Actually i haven't set any hard-code breakpoint in co...