This is probably not the correct interpretation of this error.
The Win32 error above is more likely to indicate the actual problem.
Flags
Severity
Success
This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
I am seeing delayed writes to the FAT on a small-capacity FAT(FAT12)-formatted USB flash drive even though the policy for the drive is set to "Quick Removal". (I believe this means the SurpriseRemovalOK flag is set). I've captured the SCSI commands sent to the drive over USB: the file truncation [...] read more
I have been using SendKeys.Send() & SendKeys.SendWait() to send keys to the foreground program (a program different from the application written). I tried sending a continuous key-press by sending repeatedly the same key with a certain delay between them but the effect was not the same as a continuous keypress [...] read more
This my program: void test_function(int a, int b, int c, int d){ int flag; char buffer[10]; flag = 31337; buffer[0] = 'A'; } int main() { test_function(1, 2, 3, 4); } I compile this program with the debug option: gcc -g my_program.c I use gdb and I disassemble the test_function [...] read more
I'm troubleshooting some memory fragmentation problems and I've been trying to figure out why things are being allocated and who's ultimately doing the allocation. So I enabled usermode stack traces for the process (+UST flag in gflags) and got a dump. When I analyze the dump and use the !heap [...] read more
I am working on lpc2468 ARM-based microcontroller. I am not able to configure the UART1 of the controller. Previously I was using UART0 for the same purpose, but due to some changes in hardware now I have to use UART1. I want to connect GPRS module (SIMCOM 300) to the [...] read more
SHORT VERSION Is there any documentation on the Outlook RenPrivateAppointment clipboard format used to transfer appointments? LONG VERSION As a reminder, for anything on the clipboard, the source application can present you the data in a number of different formats. The receiver can go through the list, in order, and [...] read more
I'm taking a computer architecture class, and they're having us use MIPS assembly. Our current assignment is asking us to take a user-inputted hex string, and turn it into a binary one. The code I've written "works", but it's horrible, to say the least. What would be a better approach [...] read more
I'm trying to setup my STM32F407-Discovery board to read multiple ADC channels from ADC1 using the DMA controller. It's possible to read one value without using DMA. When DMA is enabled only channel 1 is converted. The other array-elements are filled with 0. Unfortunately I cannot find my mistake because [...] read more
My English skill is poor because I'm not a native English speaker. Please understand. I compiled some test code that operating alright in IAR with LLVM infra but the generated code was not operated on my test board. Detail are as follows. TEST GOAL I want to see operating the [...] read more
I've been trying protostar stack0 challenge and wondering how to find out the buffer size if we don't have the source code. The original site (http://exploit-exercises.com/protostar) is no longer available, however you can still download the copy of ISO at https://download.vulnhub.com/exploitexercises/exploit-exercises-protostar-2.iso Here is the assembly code (gdb) disassemble main Dump [...] read more
Trying to use cJSON parser with STM32F103C8T6 and KEIL IDE The problem is that the parser works pretty well with up to 4 elements of the JSON string, when trying to add the fifth element it gives up. This code seems to be OK: #include "cJSON.h" const char * my_json_string [...] read more
Our application crashes randomly. Platform is RedHat Linux, java version is jdk 1.6_17. It is a swing based application having lot of native code. The behavior is quite random. Sometimes it crashes in few minutes and some times it crashes after some hours or after long run. I the pid [...] read more
I am trying to exploit printf vulnerability with the following C code: #include <stdio.h> #include <stdlib.h> /* gcc -fno-stack-protector -z execstack -o test test.c */ void attack(){ printf("Dropping to shell...\n"); } int main(int argc, char **argv){ char buf[100]; printf("Enter user name:"); gets(buf); // what if using: scanf("%s",buf); ? printf("buffer (%d): [...] read more
I'm really struggling to understand how PostMessage works. I'm from a web dev background so its all very foreign to me. I'm trying to send a single "a" charcter to a third party application. I've used spy++ to get the PostMessage (params below) required but I cant make sense of [...] read more
I am compiling a very large legacy Fortran 90 code (screamer) with gFortran on a Mac (2.2 GHz Intel Core i7) running Yosemite. (gFortran V5.1.0) I have 16 GB of RAM. The code is memory intensive and I am trying to increase array sizes to solve larger problems. I have [...] read more
I am trying to exploit the following program : #include <string.h> int main(int argc, char *argv[]) { char little_array[512]; if (argc > 1) strcpy(little_array, argv[1]); } I want to first find the buffer length in order to overflow the stack so I use (gdb) x/20xw $esp-532 0xffffcda8: 0x00000001 0x00000000 0x41414141 [...] read more
Hey guys I am writing a mips program for a comp. arch. class that I am taking. The professor asked us to: > prompt for four integers that are between 65 and 90 inclusive, then print out > a string of 4 ASCII character corresponding the input integers. For instance [...] read more
Ok, first please don't ask why this application is the way it is. This is a classic ASP application which in several areas uses .Net and COM and some of that .Net also reaches into COM! It's all to do with code reuse really, at some point .Net was introduced [...] read more
I am trying to implement a program that sends the same messages to a window that would be sent if a certain key is continuously pressed. This is part of the code (entire Form1.cs code is here ) for the application: [DllImport("User32.dll")] static extern int SendMessage(IntPtr hWnd, uint wMsg, UIntPtr [...] read more
I'm finding leaked heap blocks by using the following command in WinDbg !heap –l With each leaked heap block I get, I'm running to following to get the stack trace. !heap -p -a leakedheapblock The following is the result of this command: address 1c841cc0 found in _HEAP @ 3930000 HEAP_ENTRY [...] read more
My code keeps crashing am not really sure whats wrong all i know is that the caller for the arraylist is not receiving it I feel as though its something with the adapter. there is no exception in android studio sinces it lets the app run the app opens up [...] read more