Windows error 0xFFFFFFFE, -2

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)true
OriginCustomer

This code was defined by a third party software company, and may mean different things for different software. Contact the software author for more information about this error.

NTSTATUStrue
Reserved (X)true
FacilityCode4095 (0xfff)
Error Code65534 (0xfffe)

Questions

94votes
2answers

How does the JPEG of Death vulnerability operate?

I’ve been reading about an older exploit against GDI+ on Windows XP and Windows Server 2003 called the JPEG of death for a project I’m working on. The exploit is well explained in the following link: http://www.infosecwriters.com/text_resources/pdf/JPEG.pdf Basically, a JPEG file contains a section called COM containing a (possibly empty) [...] read more
c++
security
memcpy
malware
36votes
5answers

How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging - from the terminal?

The standard (low-cost) way to program ARM microcontrollers is using Eclipse with a complex toolchain plugged into it. Eclipse has definitely its merits, but I'd like to feel independent from this IDE. I'd like to discover what happens behind the scenes when I build (compile - link - flash) my [...] read more
gdb
gnu
jtag
openocd
22votes
15answers

Convert a hexadecimal string to an integer efficiently in C?

In C, what is the most efficient way to convert a string of hex digits into a binary unsigned int or unsigned long? For example, if I have 0xFFFFFFFE, I want an int with the base10 value 4294967294. read more
c
performance
hex
strtol
11votes
1answer

`tiny_malloc_from_free_list` made my pointer `NULL`?

I am working on code that includes bllipparser Python module, among other things. Feeding it the same dataset, it will intermittently crash (maybe once in three to ten runs). Going through lldb, I found that the public field weights of RerankerModel (source), that is apparently only set once (in the [...] read more
python
macos
memory-management
lldb
bllip-parser
9votes
1answer

Where can I find the log created from a gpusGenerateCrashLog callstack?

In my OpenGL rendering engine I'm currently crashing 1 frame after I press a key that starts issuing some new OpenGL calls. The following is the crashed call stack, which is a CVDisplayLink thread. 0 libsystem_kernel.dylib 0x00007fff94d89f06 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff88d3e4ec pthread_kill + 90 2 libsystem_c.dylib 0x00007fff980246e7 abort [...] read more
macos
opengl
driver
gpu
osx-elcapitan
8votes
2answers

Measuring clock cycle count on cortex m7

I have been measuring clock cycle count on the cortex m4 and would now like to do it on the cortex m7. The board I use is STM32F746ZG. For the m4 everything worked with: volatile unsigned int *DWT_CYCCNT; volatile unsigned int *DWT_CONTROL; volatile unsigned int *SCB_DEMCR; void reset_cnt(){ DWT_CYCCNT = [...] read more
c
arm
embedded
stm32f7
8votes
2answers

Branch Prediction at no cost?

I've just stumbled upon this thing, and I'm really curious if maybe modern CPUs (current ones, maybe mobile ones as well (embedded)) don't actually have a branching cost in the situation below. 1.Let's say we have this: x += a; // let's assume they are both declared earlier as simple [...] read more
c++
c
pipeline
branch-prediction
7votes
3answers

IOS: Play sound while app in background

I working on a little app where i want the phone to play a sound file on an event from my location controller. The problem is when the App is in Background mode the AVAudioPlayer not start the Audio file but the code is scheduled, getting NSLog output. Another thing [...] read more
iphone
ios
avaudioplayer
avaudiosession
6votes
3answers

operand generation of CALL instruction on x86-64 AMD

Following is the output of objdump of a sample program, 080483b4 <display>: 80483b4: 55 push %ebp 80483b5: 89 e5 mov %esp,%ebp 80483b7: 83 ec 18 sub $0x18,%esp 80483ba: 8b 45 0c mov 0xc(%ebp),%eax 80483bd: 89 44 24 04 mov %eax,0x4(%esp) 80483c1: 8d 45 fe lea 0xfffffffe(%ebp),%eax 80483c4: 89 04 24 [...] read more
linux
assembly
x86
machine-code
4votes
1answer

android epub library, skyepub

I'm triyng to create an epub reader for android, so after a lot of searching I found skyepub library (SDK) . seems it have all features i want. i followed the tut in the site, but after running the code i got a blank screen and different logcat for different [...] read more
android
epub
skyepub
4votes
1answer

External program execution impersonation mode

We've got an legacy CRM system (Server), that uses a mapped network drive. The problem is drive is fully opened for modification by any users. I'm trying to use user impersonation, in c# .net console application (Client A). 1. Client A execute an .exe program (console application), that makes impersonation [...] read more
c#
.net
impersonation
4votes
0answers

Android Unable to instantiate codec 'video/avc'

This is my first post, so bear with me. I'm trying to play raw h264 video onto a Surface object in an android app. I'm using android 5.0.1 on an HTC one. After reading through the android docs, I've found that I need to use a MediaCodec object to decode [...] read more
android
video-streaming
h.264
mediacodec
4votes
3answers

Bitwise Operations in C: Can't figure out why XOR does not work. Is my code or logic flawed?

I can only use the bitwise operators mentioned below to create the described function: /* * allEvenBits - return 1 if all even-numbered bits in word set to 1 * Examples allEvenBits(0xFFFFFFFE) = 0, allEvenBits(0x55555555) = 1 * Legal ops: ! ~ & ^ | + << >> * Max [...] read more
c
bit-manipulation
bitwise-operators
3votes
1answer

load overflow topmost address on x86

What would happen when an unaligned load overflows the topmost address on x86? For example, what would happen when loading a 4-byte integer at address 0xfffffffe on 32-bit x86 processor? Of course, the topmost page (0xfffff000- 0xffffffff) is mapped to some physical memory and the page is readable/writable, and the [...] read more
x86
operating-system
kernel
cpu-architecture
processor
3votes
0answers

VS2013 Update 3 and Azure SDK 2.4 started opening localhost instead of local IP address

We just updated Visual Studio 2013 to Update 3 and updated Azure SDK to version 2.4. We select Use IIS Web Server and Use Full Emulator for the WebRole. Previously, when we debugged our solutions, they would start up the Azure Emulators, then open the browser with the correct local [...] read more
azure
visual-studio-2013
azure-web-roles
azure-sdk-.net
3votes
1answer

IIS ApplicationPoolIdentity 503 error

I've recently ported to a different hosting company (VDS), and on the new server, installed IIS 7.5 Express, latest versions of PHP and MySQL. I then copied the files from the old server to new server (NOTHING beyond the content of the folders of my websites, so no config files [...] read more
iis
windows-server-2008-r2
access-rights
2votes
2answers

W3WP recycle return codes

I have an IIS6 machine, running multiple web applications. Once in a while, IIS recycles W3WP. When i look at the error codes, W3WP.exe usually exits with return code -2 (0xfffffffe) but one in a while it exits with -3 (0xfffffffd). While the end result is the same, i was [...] read more
iis-6
iis
2votes
2answers

Normalizing a two complement number

I am working on some Tensilica processor and I don't understand the normalization process. NSA - Normalized Shift Amount NSA at, as NSA calculates the left shift amount that will normalize the twos complement contents of address register as and writes this amount (in the range 0 to 31) to [...] read more
assembly
binary
normalization
twos-complement
fixed-point
2votes
1answer

Running the nnlib test app on the Hexagon HVX DSP

I have tried different versions of nnlibs at codeaurora and used SDK 3.0, 3.2 and 3.3.3 to compile and test them. The closest I got was to use the commit version 7321d49318a33a99e978b18411adee43df7ddaea (Jan 2018) with SDK 3.3.3 and while running the graph_app I receive this helper: $ adb shell /data/graph_app [...] read more
sdk
deep-learning
qualcomm
hexagon-dsp
2votes
1answer

How to suspend and resume VM with VMX

I have worked out a toy hypervisor with VMX in Linux, and it can work well with my testing VM. Now I am trying to test suspend and resume my testing VM with my toy hypervisor. I did followings to suspend the VM. The VM starts in real-mode, and then [...] read more
linux
x86
virtualization
2votes
0answers

High performance CUDA uniform float random number generator within device function

I need a random number generator with high performance that is used for Monte Carlo calculation on particle transport. The requirements are: 1. Independently generated by each thread 2. The period of the generator should be larger than 2^40 I have tried Tausworthe generator(mathematics of computation, 65, 213 (1996), 203-213), [...] read more
algorithm
performance
optimization
cuda
gpu
2votes
3answers

Starting process (one console application from another)

Does anyone knows why I'm getting this error (not every time but sometimes) when trying to start one console application from another. Error: > System.ComponentModel.Win32Exception (0x80004005): Unknown error (0xfffffffe) at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() this is my Code: System.Diagnostics.Process myProc = new System.Diagnostics.Process(); try { myProc.StartInfo.FileName = @"C:\MyFolder\MyExecutableApplication.exe"; myProc.Start(); myProc.WaitForExit(); [...] read more
c#
visual-studio-2010
2votes
3answers

Unusual behavior with shift-right bitwise operator

I'm writing a simple code in C (only using bit-wise operators) that takes a pointer to an unsigned integer x and flips the bit at the nth position n in the binary notation of the integer. The function is declared as follows: int flip_bit (unsigned * x, unsigned n); It [...] read more
c
bit-manipulation
2votes
1answer

Catching Stacktraces with Debug Register Breakpoints and Vectored Exception Handling

I've been working on code to attempt to monitor for stack traces and had the idea to try to use debug registers and vectored exception handling (for x86). I've made an example program that will output the address of whatever accesses the current return address. This works if a stack [...] read more
c
assembly
x86
2votes
1answer

Run a batch file as administrator from an standard account in C#

I am developing an application that needs to run a batch file with administrator privileges from a normal person account. It all works fine when I am logged on to the computers administrator account but not in the "test account" without admin privileges. I do get all the information required [...] read more
c#
windows
batch-file
2votes
1answer

Flash and debug STM32F7 discovery with openocd

I recently bought an STM32F7 discovery board [1], and I am therefore trying to flash it using openocd, since the board has an embedded st-link debugger. I have my toolchain working (I am using makefiles and arm-none-eabi-gcc), but I would like to flash the board using eclipse so I can [...] read more
debugging
embedded
microcontroller
stm32
openocd
2votes
2answers

Filling a 2GiB file with 0s in C

I am about to do some data processing in C, and the processing part is working logically, but I am having a strange file problem. I conveniently have 32-bits of numbers to consider, so I need a file of 32-bits of 0s, and then I will change the 0 to [...] read more
c
2votes
2answers

Why does this swap using simple addition and subtraction won't overflow?

I was under the impression that only swap using X-OR would work when we are providing inputs that are close to max limit of integer. Surprisingly this simple swap using addition and subtraction is working with those inputs too. #include <iostream> void simple_swap(int &x, int &y) { x += y; [...] read more
c++
visual-studio
2votes
1answer

open syscall failes to create a file without a reason

section .text global _start ;must be declared for linker (ld) _start: mov eax,5 mov ebx,plname mov ecx,0x202 mov edx,0700o int 0x80 mov eax,4 mov ecx,plaintext mov edx,256 int 0x80 xor eax,eax inc eax xor ebx,ebx int 0x80 section .data key db '123456passwordqwerty',0x0 keylen equ $ - key ;length of our [...] read more
linux
file
assembly
nasm
system-calls
2votes
0answers

Start admin tool from a non-admin user program

I'm currently migrating an application to make it compatible with the UAC. This application is provided to non-admin users so that they can perform very focused administrative tasks (restart one service, run installer update...). I carefully red Chris Jackson's blog entry and I created a bootstrapper: * Application A (elevation [...] read more
.net
security
uac
2votes
1answer

How to use closed handle in a worker thread

I'm using threads in Windows to connect a plug-in made in c++ to a python script. The thread is to be called many times in the duration of the session Question: If I pass the ArgList in the _beginthread the error "Unhandled exception at 0x1E114A68 (python27.dll) in xxx.exe: 0xC0000005: Access [...] read more
python
c++
multithreading
1vote
0answers

Tail Call Optimization (TCO) in Clang on O2

I was playing with Tail Call Optimization (TCO) and various optimization levels in clang on godbolt. I have the very simple function (lifted from here): int factorial (int x, int y){ if (x==0) return y; else return factorial(x-1,y*x); } If I set -O1, all is good and I understand the [...] read more
c++
recursion
optimization
clang
tail-recursion
1vote
1answer

Eclipse J-Link ATMEL ARM ATSAME70Q21. Debugging when the code starts at a different address than 0x00400000

I am trying to use Eclipse with J-Link on an ATMEL ATSAME70Q21. I am able to debug code perfectly when the code start address is at the default address of 0x00400000. It downloads the code, stops at the main breakpoint, etc. All the debug commands seem to work fine. When [...] read more
c
arm
embedded
1vote
2answers

Bizarre right bitshift inconsistency

I've been working with bits in C (running on ubuntu). In using two different ways to right shift an integer, I got oddly different outputs: #include <stdio.h> int main(){ int x = 0xfffffffe; int a = x >> 16; int b = 0xfffffffe >> 16; printf("%X\n%X\n", a, b); return 0; [...] read more
c
ubuntu
bit-manipulation
bit-shift
1vote
0answers

How do I use heic format in Android P?

HeifEncoder was seen and implemented. "MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC);" If you do this, the following error will occur. > Blockquote java.lang.IllegalArgumentException: Failed to initialize image/vnd.android.heic, error 0xfffffffe at android.media.MediaCodec.native_setup(Native Method) at android.media.MediaCodec.<init>(MediaCodec.java:1811) at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1777) Is there a way to resolve the error? read more
heif
heic
1vote
4answers

Interleave 4 byte ints to 8 byte int

I'm currently working to create a function which accepts two 4 byte unsigned integers, and returns an 8 byte unsigned long. I've tried to base my work off of the methods depicted by this research but all my attempts have been unsuccessful. The specific inputs I am working with are: [...] read more
c
bit-manipulation
interleave
1vote
0answers

How to create multi frame dicom file using dcm4che from several JPEG images?

I'm developing a DICOM application with dcm4che3, however, I have a problem with multiframe DICOM file. I would like to convert several JPEG images in only one DICOM file (Multiframe DICOm file. I have extracted all the frames from dicom as Jpeg images and masked. I want to set back [...] read more
java
1vote
2answers

How to load wifi firmware in android?

I want to use usb wifi adapter in custom android board, so far I was able to build driver for chipset, and android is able to detect the dongle, and even creates wlan0. But I don't how to load firmware as there is one bin file. When I am trying [...] read more
android-wifi
android-source
android-kernel
1vote
1answer

stm32 factory bootloader possibly overwritten with openocd?

tl;dr: flashed firmware to 0x00000000 instead of 0x08000000, am I lost? Hello, my device is based on a STM32F103CBTx which came with a proprietary firmware and had readout protection on. I connect to it with a ST-Link v2 SWDIO and SWCLK connected to PA13 and PA14 and this command: sudo [...] read more
stm32
openocd
1vote
2answers

Issue with J-Link debugger while working with bootloader on STM32F765

I'm using the J-Link EDU and STLink debugger present on the Nucleo boards from ST. For testing, the bootloader code is present at 0x8000000 and just jumps to 0x8020000 where the main app code is present. When I use the Jlink EDU, it can't program the flash at 0x8020000 every [...] read more
c
eclipse
debugging
bootloader
jlink
1vote
2answers

Get Currently Opened Word Document from Process

The goal is to get the full path to the document opened in an instance of Microsoft Word that I have a process reference for. Pseudocode Example: Process myWordProcess = something; // This is my process reference DocumentInformation docInfo = SomeNamespace.GetDocumentInformation(myWordProcess); string documentPath = docInfo.FullName; // "C:\User\Foo\Documents\Test.docx" The starting point [...] read more
c#
winapi
com
office-interop
com-interop
1vote
2answers

Maximum Index of an array and it's length on a platform

In C, the index of an array of char can range from 0 to 2 ^ (sizeof(size_t) * CHAR_BITS), but the count of the array's members, is that number plus 1, which can't be hold by a size_t variable. For example, in x86, if sizeof(size_t) is 4, then the index [...] read more
c
arrays
1vote
3answers

Dumped XML Layout File padding positions not behaving correctly

I've been trying to figure out how to make some sense of a dumped XML layout, and it's progressing 'pretty good'. The only thing I'm currently unsure about is the following: When I use the command: aapt dump xmltree <pathofapk> <pathofxmlfile> I get the following result: N: android=http://schemas.android.com/apk/res/android E: LinearLayout [...] read more
android
1vote
1answer

Very strange segfault calling WinUsb_GetOverlappedResult

I have this code: void GetResult(WINUSB_INTERFACE_HANDLE InterfaceHandle, LPOVERLAPPED lpOverlapped) { DWORD numBytes = 0; WinUsb_GetOverlappedResult( InterfaceHandle, lpOverlapped, &numBytes, TRUE ); return; uint8_t stack[64]; } WinUsb_GetOverlappedResult is a __stdcall function declared as follows: WINBOOL WINAPI WinUsb_GetOverlappedResult (WINUSB_INTERFACE_HANDLE InterfaceHandle, LPOVERLAPPED lpOverlapped, LPDWORD lpNumberOfBytesTransferred, WINBOOL bWait); Compiling in debug mode with GCC 5.3.0 [...] read more
c++
windows
gcc
segmentation-fault
stdcall
1vote
1answer

LDMIA instruction results in corrupt register data

I'm attempting to run a compiled program on a ARM Cortex-M3 bare metal. Before the system even reaches the application code, an odd error blows the program counter away and errors out. Before the instruction, the registers are observed to be: r0 0x0 0 r1 0x1 1 r2 0x0 0 [...] read more
c
gcc
assembly
gdb
cortex-m3
1vote
0answers

LPC4357 jumping to external flash unstable

I have two programs, one is custom bootloader which will be located in BANK A and the other one is the main program which will be located in external spifi flash. Both programs I load and debug from eclipse. Currently I can jump from the bootloader to the main program, [...] read more
bootloader
flash-memory
lpc
1vote
1answer

Copy function from IAR stm32f2/f4 flash to ram and run it

I want to copy a function from Flash to RAM and RUN it. I know that IAR includes the __ramfunc type for functions that allows you to define a function in RAM but i dont want to use it for 2 reasons: * RAM funcs are using RAM memory that [...] read more
stm32
iar
cortex-m3
stm32f4
1vote
1answer

Assembly infinite loop (jmp -2)

I heard that with a jmp -2 we could make an infinite loop. It sounded weird but after the explanation that a relative jump would take one byte, the next instruction address (eip) would be 2 bytes less than the jmp address. So, I decided to implement that but I [...] read more
assembly
nasm
infinite-loop
1vote
0answers

Run exe as impersonated account from vb.net

I am trying to run an exe from another account which has admin rights, I have this so far but its giving me an unknown error (0xfffffffe): Private Shared Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As Int32) As Boolean End Function Public Sub RunAsAdmin() Dim tokenHandle As New IntPtr(0) [...] read more
wpf
vb.net
windows-identity
1vote
1answer

"Error reading characters of string" C, Visual Studio 2013

Ive been asked to write a function that merges two sorted (ascii sorted) strings without duplicates. For example, for string1 = aabcd, and string2 = abbcdg, the end result string should be abcdg. For some reason, the end result string doesnt allocate well, or so I think.. its not working [...] read more
c
string
1vote
1answer

How to check is bit value equals to 1?

I have running OpenCL kernel. At some moment I want to check is bit at selected position in variable equals to one or not? For example, I found that in C# we can convert uint to string containing bits using code like this: // Here we will store our bit [...] read more
c#
opencl
bit
1vote
1answer

how to get a clock from a device tree node

I have the following issue: I want to define the clock a CPU should use during frequency transitions in the device tree rather than in the clock driver code (in this way it will be more generic). I want to define the "transition-clock" property in the device tree, something like: [...] read more
c
linux-kernel
embedded
linux-device-driver
device-tree
1vote
1answer

From int[] to image png

For a project I'm working on hiding text in images using steganography. I've realized a class in my app that ask me to select an image (.png) and modify the least significant bit of every pixel. Now the problem is that I've an array of integer from which I have [...] read more
java
android
image
1vote
1answer

Debugging .Net web api

I built a .net web app using visual studio. I tested it in visual studio and it seemed to work fine. After publishing it locally and copying to my remote web server it seems to keep crashing the application pool and I'm not sure how to debug it. How I [...] read more
c#
asp.net
asp.net-web-api
asp.net-web-api2
1vote
0answers

(Nios 2/Altera DE2 using Assembly) Why doesn't my lego controller motor receive the values from the sensor for self balancing robot?

I am a computer science student and am working on a lab for school. I have been trying to make this work, to no avail. So far, All that happens is my motor runs forward without stopping. I connected my sensor to the LED's on the DE2 board to see [...] read more
assembly
robot
intel-fpga
lego
nios
1vote
1answer

C - Using bitwise operators to determine if all even bits are set to 1

Hi I am having trouble getting this function to work. Basically, the the function should return a 1 if all even place bits are 1 and 0 otherwise. This program always prints 0 for some reason. Here is the code : #include <stdio.h> int allEvenBits(int); int main() { printf("%d\n", allEvenBits(0xFFFFFFFE)); [...] read more
c
bit-manipulation
0votes
0answers

debugging boltd and Dell TB16 on Dell Latitude 5491 and Xubuntu 18.04

Every now and then my Dell TB16 dock device stops working i.e. port replication is off, also the dock's white LED goes off. * OS: Xubuntu 18.04.2 LTS * Kernel: 4.15.0-54-generic #58 * System: Dell Latitude 5491 BIOS 1.8.1 05/23/2019 I've installed the thunderbolt daemon boltd but the boltctl command [...] read more
dell-latitude
xubuntu
docking-station
thunderbolt
0votes
0answers

Barebox bootchooser/state integration Raspberry Pi 3 issue

I have an issue regarding barebox bootchooser/state integration for Raspberry Pi 3 (used for multiple rootfs + RAUC software update). I am using the following: Yocto Pyro 2.3.2, barebox 2018.12.0 . I have successfully configured barebox, I can see the output on the debug console. Rpi 3 does not have [...] read more
raspberry-pi
bootloader
sd-card
software-update
yocto-project
0votes
0answers

Shared folder as network drive, some files cannot be written

I have a folder on C:\, let's say C:\ABC, shared as a network folder as R:\ with full access (to this directory and all its contents) to all users. (Win2008R2) Inside the folder I have one specific dir which I have made a site of in IIS7 (functioning well). In [...] read more
batch
network-drive
0votes
0answers

Intel graphics i915 chpip (onboard graphics card) in the Kernel not working

I've got a server and that uses the i915 integrated graphics chip from Intel error The error is: [ 3.015087] AES CTR mode by8 optimization enabled [ 3.029401] iwlwifi 0000:05:00.0: base HW address: f8:94:c2:c1:56:97 [ 3.065668] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs' [ 3.065847] (NULL device ): hwmon_device_register() is [...] read more
linux
kernel
graphical-user-interface
0votes
2answers

Inconsistencies with Linux tc filter u32 matching on packet data payload - can someone explain?

I would just like some heads up on this as I really don't understand -why- this is the case. Further down is the TCPDUMP output (tcpdump -s0 -XXnni eth0 tcp port 80) of the 'HTTP' response a webserver gives when a normal GET request is made to it. What I [...] read more
linux
networking
filter
pcap
tc
0votes
0answers

Problems with the read syscall

I am writing a simple program that reads data from two files and performs a byte-by-byte comparison to find the first(if any) difference between the two. Here is the code I'm having trouble with: it checks to see if the lengths of the files are different and prints appropriately: len1 [...] read more
c
linux
system-calls
0votes
0answers

Why are no dts pts written to my mp4 container

Based on my (self-answered) question here Muxing AVPackets into mp4 file - revisited, I have to ask, what could be the reason why there are no values written for pts/dts in the resulting mp4 container. I examined the container file with the tool MediaInfo. I observe that only the very [...] read more
ffmpeg
libav
libavformat
0votes
4answers

Clearing least significant bit

QUESTION How would I change the least significant bit to 0 without affecting the rest of the value, for example: 0xffffffff , for example in C or Python? I am not a mathematical genius, so for me it's a hassle to find out how to achieve this. SOLUTION n = [...] read more
c
bit
0votes
2answers

Causing a Buffer Overflow Using fgets

I'm trying to make a buffer overflow on a c program, but I can't manage to find the vulnerability and exploit the code. I've tried thousands of inputs. Generally I've tried these: 1) I've tried the obvious - giving a very long string as an input. 2) I've tried to [...] read more
python
c
buffer-overflow
0votes
1answer

Why nodeMCU tls mbed library got error 40(handshake fail) from Pushbullet API server?

I want to make a nodeMCU IoT project with Pushbullet push service. There are a lot of the same project examples that I'm trying to make. My project is almost same with a below example. nodemcu-pushbullet-notification It seems very simple, but I'm experiencing unexpected difficulties. HTTPS handshake fail with error [...] read more
ssl
tls1.2
nodemcu
mbed
0votes
0answers

redis-cli unix socket - import rcmd failing

I am using redis server 3.0.6 on ubuntu 16.04 desktop. Installed using apt-get install redis-server It was working fine for a long time. Today, when I tried to import a rcmd file using unix socket in redis-cli I am getting out of memory error. $ sudo redis-cli -s /run/redis/redis.sock < [...] read more
redis
ubuntu-16.04
unix-socket
redis-cli
0votes
0answers

Safely Searching Virtual Address Space using NASM

In the following code after calling 'access' system call, 0xfffffffe is present in EAX. While in case of success, 'access' system call returns 0. Here I am trying to access the memory which is part of the data section. Then why 'access' is returning 0xfffffffe ? global _start section .text [...] read more
linux
assembly
x86
nasm
0votes
1answer

Binary Bomb Phase 5 - Looking for two ints as input

I'm currently working on the binary bomb project and am stuck on phase 5. My version appears to be a little different than the other walkthroughs and tutorials I've searched for. This is x86-64 assembly. I've figured out that it is looking for two integers as input. Here is the [...] read more
c
assembly
x86-64
reverse-engineering
att
0votes
1answer

Transform class from C++ to C#

I am new to C# and I need to use a class I had previously in PHP but now I have it in C++, the problem is that I do not know how to transform it to C# in the correct way, I have been trying but I do not [...] read more
c#
c++
encryption
encoding
0votes
0answers

STM32F767ZIT6 Nucleo openocd flash

STM32F767ZIT6 Nucleo board and trying to flash it with blinky code from templates * have populated all the CMSIS and required drivers. * Installed GNU MCU eclipse plugin. * Built the code * Configured openOCD * When trying to debug the code its returns these errors GNU MCU Eclipse 64-bits [...] read more
c++
c
openocd
stm32f7
0votes
0answers

Stuck on Instruction SVC0 __asm void prvStartFirstTask( void ){...}; in STM32F4

In my project, > boot loader Flash address: 0x08000000 application Flash address: 0x08004000 Same RAM for boot and app: 0x20000000(IRAM1) and 0x10000000(IRAM2) 1. Separately boot Loader and Application(With or Without FreeRTOS) working fine. 2. Boot Loader and application(Without FreeRTOS) working perfectly. 3. But if i use freeRTOS in my application [...] read more
arm
microcontroller
stm32
freertos
stm32f4discovery
0votes
2answers

BizTalk Error code: 0xC0002A21, An error occurred while attempting to access the SSO database

I have a BizTalk 2013r2 Standard Edition application server with a dedicated (Separate Sql Server) hosting the BizTalk databases. Just lately, I've started to see a pair of errors in the event log. Typically these are raised about every couple of hour but there's no clear pattern - sometimes they [...] read more
single-sign-on
biztalk
0votes
0answers

ARM ASM Interrupt Vectors (.long in GNU ASM)

I am needing to jump to a very specific place in memory and in order to do this, I am needing to know how the GCC assembler puts .long into the final binary file. .section ".flashconfig" .long 0xFFFFFFFF .long 0xFFFFFFFF .long 0xFFFFFFFF .long 0xFFFFFFFE Which for my layout file, section [...] read more
assembly
gnu
long-integer
bin
0votes
0answers

Calling C++ from JIT code (calling convention)

I'm programming a JIT compiler, that has to call c++ functions from the compiled asm code. I'm working on Windows x64 only so far and implemented the calling convention from microsoft. (https://msdn.microsoft.com/en-us/library/ms235286.aspx) It works, until it doesn't. If the called function is simple and only calls functions that are simple [...] read more
c++
assembly
64-bit
jit
0votes
1answer

How can I use threadlocal variable with ThreadPoolExecutor?

I want to threads has some local variable, with thread.Thread it can be done like this elegantly: class TTT(threading.Thread): def __init__(self, lines, ip, port): threading.Thread.__init__(self) self._lines = lines; self._sock = initsock(ip, port) self._sts = 0 self._cts = 0 def run(self): for line in self._lines: query = genquery(line) length = len(query) [...] read more
python
multithreading
threadpoolexecutor
0votes
1answer

Fatal error when calling ARM assembly function from C

I'm trying to implement an example from a book of calling an assembly function from C. But I keep getting a fatal error where the PC = fffffffe and therefore executing code outside of RAM or ROM. Here is my C file, t.c: int g; // uninitialized global int main() [...] read more
c
assembly
arm
qemu
0votes
1answer

how to get a true 16-bit value?

So I'm using an LPC1768 using the mbed interface. This snippet: int16_t test = -1; test -= 1; printf("Value: %d\n", sizeof(test)); if (test== 0xFFFE) { printf("It's stayed the same.\n"); } else if (test== 0xFFFFFFFE) { printf("It's been extended.\n"); } else { printf("None\n"); } prints out Value: 2 It's been extended. [...] read more
c++
types
0votes
3answers

How can I evaluate if my input argument has all even bits set to 1?

I'm trying to do bit logic manipulation in C but getting stuck. I need to write a function that, given an input argument it will evaluate if my argument has all even bits set to 1. For example: myFunction (0xFFFFFFFE) = 0; myFunction (0x55555555) = 1; The operators that I'm [...] read more
c
logic
bit-manipulation
0votes
0answers

Cannot read ZF correctly?

I'm finding myself unable to read the zero flag (ZF) bit correctly. I'm quite confused, because this approach appears to work fine for other flags such as the carry flag (CF) or overflow flag (OF). My strategy is to push the EFLAGS register onto the stack with the instruction pushf, [...] read more
assembly
x86
gas
0votes
1answer

Read binary file with ARM assembly

I would you like write a simple program that open a binary file and read every byte. I try to do this using an Android device with this syscalls ( https://android.googlesource.com/platform/bionic/+/cd58770/libc/SYSCALLS.TXT) with follow code ... ldr r0, =binaryfile mov r1, #2 mov r7, #5 svc #0 loop: ldr r0,=Handle ldr [...] read more
android
assembly
arm
0votes
1answer

What is the default type of integral literals represented in hex or octal in C++?

What is by default type of integral literal defined below: 0X123 /* hex , int ? unsigned int? long? unsigned long? */ 0XFFFFFFFE /* hex , value is (2^32-2)=4294967294 .*/ 0123 /*octal */ /* value = 83*/ 042747672777 /* octal , greater than 2^32*/ /* value=4691293695 */ I read in [...] read more
c++
0votes
1answer

Sobel edge-detection, weird output

I´m trying to implement a Sobel algorithm for edge-detection for a YUV camera stream. Initially it seems quite easy but I´m not sure if this approach is correct: * I´m applying the filter just to the Y pixel component and doing U and V = 0 (black and white image). [...] read more
edge-detection
sobel
0votes
1answer

Run an elevated command prompt process

I want to run an elevated command prompt process. I have users: myDomain\myAdmin and myDomain\myUser. If I run next code under myDomain\myAdmin, it works fine. But under myDomain\myUser, next exception appear: "Unknown error (0xfffffffe)". Any ideas why? namespace myProcess { public partial class Form1 : Form { [DllImport("advapi32.dll", SetLastError = [...] read more
c#
0votes
0answers

Why this code is crashing when call procedure in loop?

I tried to write own simple bootloader, I had this code: .code16 # Generate 16 bit code .globl set_protected_mode .globl set_real_mode __init: call set_protected_mode call set_real_mode jmp __init # jmp init # Jump to init function in init.c set_real_mode: cli mov %cr0, %eax and $0xfffffffe,%eax mov %eax, %cr0 sti jmp [...] read more
assembly
x86
bootloader
protected-mode
bochs
0votes
2answers

How to concurrently write and read CUDA array with unique incrementing values?

I have a shared memory array initialized as follows #define UNDEFINED 0xffffffff #define DEFINED 0xfffffffe __shared__ unsigned int array[100]; __shared__ count; // We have enough threads: blockDim.x > 100 array[threadIdx.x] = UNDEFINED; // Initialize count if (threadIdx.x == 0) count = 0; The threads have random access to array. When [...] read more
cuda
0votes
0answers

DLL Injection Static Pointer Different Value

I am trying to write a bot for a game, with a DLL Injection. I have found a static pointer to an address I want to read from the DLL. The static pointer's address is wow64cpu.dll+4738, which I get with cheat engine by: 1. Finding the value (z coordinate of [...] read more
c++
pointers
dll
bots
dll-injection
0votes
3answers

Is ARM (not Thumb) supported on WinPhone8 at all?

I'm facing a weird issue, somewhat similar to this. I have a Windows Phone 8 native DLL project, mostly C++ but with an ARM assembly source in it. The source is in ARM mode (i. e. not Thumb). C++ is compiled to Thumb. The app crashes when C++ tries to [...] read more
assembly
windows-phone-8
arm
thumb
seh
0votes
2answers

Comparison of unsigned integers

I'm trying to write an "BigInteger" implementation. BigInteger is an array of unsigned integers. BigInteger_1 [0] ... BigInteger_1 [15]; I'm trying to perform addition of two BigInteger's. using System; namespace BigInt { class MainClass { static int MAX_SIZE = 16; public static void Main () { // First BigInteger uint[] [...] read more
c#
0votes
2answers

bit manipulation C allEvenBits

I have to use bitwise manipulations to accomplish something. This is what the question asks of me: /* * allEvenBits - return 1 if all even-numbered bits in word set to 1 * Examples allEvenBits(0xFFFFFFFE) = 0, allEvenBits(0x55555555) = 1 * Legal ops: ! ~ & ^ | + << [...] read more
c
bit-manipulation
0votes
1answer

triple type casting bit work - widening from char to long

I'm trying to figure out the bit casting in the line below: long a = (long) (int) (char) (-2) I want to represent it as an hex number what comes before what? i've tried to cast from right to left so i just padded with 1's and the result is: [...] read more
java
types
casting
0votes
1answer

Get string from lsb of pixels of a PNG image

I've written a code that modify the least significant bit of every pixel of a PNG image and then save the image on external memory. Now, when I open the PNG image, I don't know how to do the reverse operation, that means I don't know how to get the [...] read more
java
android
image
steganography
0votes
1answer

Wrapping ulong variables with arithmatic operators

I'm somewhat confused regarding the nature of intentionally overflowing structures like ulong in C#. Essentially I'm working on a grid that I want to be ulong.max X ulong.max squares. If I perform an arithmetic operation on the coordinates I want it to automatically wrap over the other side of the [...] read more
c#
overflow
word-wrap
ulong
0votes
0answers

iOS app crashes EXC_BAD_ACCESS when not debugging (cable disconnected)

I'm trying to debug an app which only crashes when executing a specific action when the debugging cable is not connected. The crash log generated only provides a stack trace through Apple classes from int main. How can I debug this better? I build and run the app from xcode. [...] read more
ios
objective-c
0votes
0answers

embedding and extracting data in an image

I wrote a code which embeds and extracts text in an image. Despite my best attempts I was not able to understand what is wrong in the code due to which the extraction is not successful.Looking for help on the same. here is the code public class EmbedAndExtract { //Embedding [...] read more
java
rgb
bufferedimage
steganography
0votes
1answer

unhandled MPU fault on Cortex-M3 with uclinux and uclibc

This is a hard question but I hope someone could help ;) Here is the crash I have from simplest app which just calls pthread_create(): / # /opt/zpm_thread 00032 : pthread_initialize: initial thread stack bounds: bos=0x1, tos=0xffffffff 00032 : __pthread_initialize_manager: manager stack: size=8160, bos=0xa02fc008, tos=0xa02fdfe8 00032 : __pthread_initialize_manager: send REQ_DEBUG [...] read more
arm
cortex-m3
uclibc
uclinux
mpu
0votes
0answers

SIGSEGV with indirect addressing

i have a problem with a piece of assembly code embedded in a c program. jmp 0x8048408 <main+44> 0x080483e4 <+8>: pop %esi 0x080483e5 <+9>: xor %eax,%eax => 0x080483e7 <+11>: mov %ah,0x7(%esi) 0x080483ea <+14>: mov $0xffffffff,%ebx 0x080483ef <+19>: sub $0xfffffffe,%ebx 0x080483f2 <+22>: mov $0xffffffff,%eax 0x080483f7 <+27>: sub $0xfffffffb,%eax 0x080483fa <+30>: int [...] read more
assembly
x86
sigsegv
mov
0votes
0answers

Open File on Network As A Different User

I have a .NET windows application I am writing in which I want to run "explorer.exe" to open a file. Basically, I have this program that shows users files (in a grid) that is in a folder on the network in which they do not have access to. So basically [...] read more
c#
0votes
1answer

What other values will generate error when given to std::minstd_rand::seed()?

I'm on VC++11, so far those values generate errors, but not on ideone.com #include "stdafx.h" #include <iostream> #include <random> using namespace std; int _tmain(int argc, _TCHAR* argv[]) //int main(int argc, char* argv[]) { //print_seq(seeded_rand(0x7fffffff,10)); //cout << print_seq(seeded_rand(0xffffffff,10)); ////print_seq(seeded_rand(0,10)); //cout << print_seq(seeded_rand(-50000,10)); //cout << print_seq(seeded_rand(1,10)); minstd_rand r1; minstd_rand0 r2; r1.seed(0); system("PAUSE"); [...] read more
c++
visual-c++
c++11
0votes
1answer

Could not access the SSO database During biztalk runtime Configuration

I'm trying to test a migration of moving a BizTalk SQL Server from one server to another. Here are the details. Currently it was all on a single server in a dev environment, BizTalk SQL, SSO and BizTalk runtime all on one server. It is a Windows 2008 R2 server [...] read more
sql-server-2012
single-sign-on
biztalk
biztalk-2013
0votes
2answers

Are signed hexdecimal literals possible?

I have an array of bitmasks, the idea being to use them to clear a specified number of the least significant bits of an integer that is being used as a set of flags. It is defined as follows: int clearLow[10]= { 0xffffffff, 0xfffffffe, 0xfffffffc, 0xfffffff8, 0xfffffff0, 0xffffffe0, 0xffffffc0, 0xffffff80, [...] read more
c++
c++11
literals
0votes
2answers

Address 0xfffffffe out of bounds in app_confbrige.c asterisk-11.5.1 using confbridge.conf

Address 0xfffffffe out of bounds why and how to solve. MyConfbridgeCount(conferencenumber, variablename) returns the total number of users in a conference given by conferencenumber, otherwise it returns zero. At runtime, I'm using MyConfbridgeCount(4000,count). Now app2: MyConfbridgeCount will call the function count_exec(struct ast_channel *chan, const char *data). But at compile time [...] read more
c
string
pointers
asterisk
conference
-1votes
2answers

ni/src/SDL/debugger.cpp:1283:13: error: 'int i' previously declared here eclipse

okay so I'm currently working on an android application in eclipse using the android sdk and adt etc. while I'm compiling my code I'm getting errors I've racked my brain for days looked up similar threads on here before posting but none suited my satisfaction as I tried the various [...] read more
android
c++
eclipse
-5votes
2answers

Access violation reading location 0xFFFFFFFE

void inputArray(int* *pa, int *n) { do { printf("Input the elements: "); scanf_s("%d", n); if (*n < 0) { printf("Error! Input again\n"); } } while (*n < 0); *pa = (int*)malloc(*n * sizeof(int)); for (int i = 0; i < *n; i++) { printf("Elements a[%d]: ", i); scanf_s("%d", pa + [...] read more
c
-5votes
4answers

Crashing Pointer Array C++

Code::Blocks, Win7, C++ Hi, I'm creating an overview project for myself, and an integral part includes doing an Exchange Sort in descending order. I've created a simple trial run to test the concept. Embarrassingly enough, I can't get past creating the array without the project crashing. This only happens when [...] read more
c++
arrays
pointers

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0