Questions tagged [overrun]
25 questions
4
votes
5 answers
Casting long to byte in Java
I am unable to understand the following:
In java,
long l = 130L;
byte b = (byte)l;
If I print the value of b, why do I get -126? What is the bit representation of long l?

Pan
- 6,455
- 5
- 27
- 27
4
votes
2 answers
Valgrind array overrun within objects
I have a simple program as below.
struct Test
{
int a[5];
int b;
};
int main()
{
Test* t = new Test;
t->b = 1;
t->a[5] = 5; //This is an illegal write
cout << t->b << endl; //Output is 5
return 0;
}
Running it…

leolong
- 172
- 1
- 6
2
votes
4 answers
Resize JavaFX Label if overrun
I have a Label in a GridPane in a TitledPane. I want it to downsize stepwise by 0.05em if it is overrun so the three dots ("Long Labe...") dont show up -> "Long Label" in small.
An isOverrun()-method for the Label would be great but JavaFX doesnt…

Simsala
- 77
- 1
- 2
- 8
2
votes
1 answer
Stack buffer overrun (Windows, C++) : how can I detect the culprit?
Are there any tools/libraries on Windows that can help me tarck down the culprit? This is a fairly large codebase, with multiple threads.
I code for Linux mostly; Windows is unfamiliar territory. Thanks for your input.

Ziffusion
- 8,779
- 4
- 29
- 57
2
votes
1 answer
C++ Security Framework for Buffer Overflows, Format String Bugs and Integer Overflows
Does anyone know of any C++ security frameworks which protect against buffer overflows, format string bugs and integer overflows please?

Matthew
- 4,477
- 21
- 70
- 93
1
vote
1 answer
Getting Serial communication Overrun error indication using WinAPI
Overview:
I'm trying to trigger an Overrun error indication, by issuing long delays between each byte read from the serial port.
To make long story short - I don't get this event.
The test:
The DTE is configured to work at 920000BPS 8N1, no flow…

yoav Segal
- 11
- 2
1
vote
5 answers
C tiny, pre-allocated array does not overrun
I was expecting a segfault with this code:
char * foo (char my_ascii[10])
{
strcpy (my_ascii, "0123456789");
return my_ascii;
}
char bar[2];
printf("%s\n", foo (bar));
Because bar reserves a 2-char array in the stack, and foo() tries to…

amp
- 11
- 1
1
vote
1 answer
Stackbased buffer overrun
When running my code I get the following error:
Unhandled exception at 0x00BA16A0 in GameLauncher.exe: Stack cookie instrumentation code detected a stack-based buffer overrun.
I have no idea what could be causing this. It is caused with the…

KingRaider
- 19
- 2
- 9
1
vote
0 answers
Can we detect UART overrun error from user land?
I'm using Linux-2.6.35 released from freescale git.
I want to detect UART overrun error from user land.
Now I receive UART RX data using opening sysfs file and using read(2) API.
But it seeems to me that read(2) cannot return error(-1) even though…

takashi ikejima
- 21
- 3
1
vote
2 answers
Alsa Buffer overrun while playback of audio
I have connected IMX board to pc back to back.
I am running a binary in board which sends audio frames every 5.7ms with 1024 bytes.
The pc receives the frames and writes using
printf("snd_pcm_avail %d \n",snd_pcm_avail…

user3659653
- 73
- 2
- 12
1
vote
1 answer
"reg_node overrun" when compiling regular expressions in perl
I am trying to run a script that defines a few (complex) regular expressions: https://github.com/wo/opp-tools/blob/master/rules/Keywords.pm. Whenever I include this module, Perl crashes with the message "panic: reg_node overrun trying to emit 51 at…

diagonallemma
- 31
- 5
1
vote
1 answer
.NET SerialPort.Read skipps bytes
Solution
Reading the data byte wise via "port.ReadByte" is too slow, the problem is inside the SerialPort class.
i changed it to reading bigger chunks via "port.Read" and there are now no buffer overruns.
although i found the solution myself,…

Lukas Rieger
- 676
- 10
- 31
0
votes
0 answers
A char array of 64x64 get overwritten constantily. STM32F407 Keil Arm
The program has 2 extern arrays of 64X64. One works fine the other most of time has values changed persistently.
I already try to declare the arrays as volatile and did not make a difference. I suspect that is necessary to place those arrays in a…

Dalmo
- 1
- 2
0
votes
1 answer
how to avoid HAL_UART_RECEIVE_IT() overrun error (errorcode 8)
my IT is called after receiving 8 bytes:
HAL_UART_Receive_IT(&huart2, buffer1, 8);
where buffer1 has length 8.
in my callback function I copy the 8 bytes to a seperate buffer2 and empty buffer1 & restart reception.
this way i am continuously…
0
votes
0 answers
How does Windows Media Foundation Media Source or Source Reader handle overrun?
I've implemented a UVC video viewing application using the source reader in async mode (OnReadSample()). The connected camera produces raw10 frames and can display just the raw images or perform additional processing (within OnReadSample() callback)…

SB75
- 1