Questions tagged [overrun]
25 questions
0
votes
1 answer
c++ COM COMDLG_FILTERSPEC array overrun
So I've got this function which will take a list of string pairs and generate a COMDLG_FILTERSPEC array.
pairs are as such: first = "All Types" second = "*.*"
The function works however I get buffer overruns as shown here:
I also get this nice…

A Novice Programmer
- 31
- 1
0
votes
2 answers
Buffer Overrun using a Vector
unsigned short* myClass::get_last(size_t _last) const
{
if (_last == 0) _last = last.size();
if (_last <= last.size())
{
unsigned short* temp = new unsigned short [_last] {};
while (_last > 0) temp[_last] =…

Simo Pelle
- 141
- 1
- 11
0
votes
1 answer
UART overrrun error while using STM32L476RG
I am running my code on an STM32L476RG which generates a UART interrupt every time it receives data. I am using UART2 for this purpose and USART2_IRQHandler is called after I send data from my terminal. But inside HAL_UART_IRQHandler, my code gets…

blazingcannon
- 37
- 2
- 9
0
votes
1 answer
STM32 HAL I2C is returning OVR (overrun/under-run) error when using an interrupt driven approach
I am attempting to implement an interrupt driven I2C slave that is continuously ready to receive (except when transmitting) on the STM32L051. The problem is that I keep receiving the HAL_I2C_ERROR_OVR error in the HAL_I2C_ErrorCallback. The below…

Devin Parker
- 41
- 1
- 4
0
votes
0 answers
bash: read overrun when using Command Substitution and ssh
I am going totally crazy!
When I run this bash (prof of concept) script and feed it fast enough, it looses cycles:
# cat sample
#!/bin/bash
tail -n 0 -f log | while read l
do
SSH_CMD=$( ssh myhost.sample.com 'ls' )
X=$( ping -c3 $l )
…

aAWnSD
- 124
- 10
0
votes
2 answers
C# Application crashes with Buffer Overrun in deployed (.exe) version, but not in Visual Studio
I have a c# Windows Forms application that runs perfectly from within Visual Studio, but crashes when its deployed and run from the .exe. It crashes with a Buffer Overrun error...and its pretty clear that this error is not being thrown from within…

Ben
- 1
0
votes
1 answer
buffer overrun issues when using scanf_s
I'm writing a simple client-server application which uses async type sockets. However, when I send a message from a client, I'm getting a buffer overrun exception. Client code:
#include "stdafx.h"
#include
#include
#include…

Vanguard
- 129
- 1
- 11
0
votes
0 answers
Visual C++ 2008 variables overlap in memory
I've got a strange problem. I've got a program where I'm using some static variables (some of which are objects including other variables) and some of them seem to overlap in memory in _DEBUG_ mode.
The program is rather complex and I've not yet…

user1552175
- 178
- 10
0
votes
0 answers
metadata of heap block corrupted, user accessible part not. Is it a overrun?
I got a memory corruption on the heap when running my 32bit app on Windows 2008 server, 64bit, when I check the heap block which was corrupted, I found that the metadata of the heap block was not corrupted, but the user accessible part was corrupted…

user1137890
- 147
- 1
- 4
- 11
-1
votes
1 answer
Trying to overrun time in a constructor
I have a constructor in which I am trying to overrun time. So if the user enters 63 seconds, the 60 seconds get passed on to the minute because it is impossible to have 63 seconds in a minute. This is what I have. I need help with the commented…

gamefaqs_god
- 29
- 4