new

Try Stack Overflow for Business

Our new business plan for private Q&A; offers single sign-on and advanced features. Get started by May 31 for 2 months free.

Learn more

All Questions

Tagged with
0
votes
0answers
17 views

*** buffer overflow detected ***: When Launching External Process From Tomcat

I'm trying to launch an external C-based program from a Tomcat webapp. I'm running Tomcat 8.5.38 on Ubuntu Server 18.04.1 LTS with openjdk-8-jre-headless. I can launch the program successfully from ...
0
votes
0answers
13 views

Table model overflow [duplicate]

I am adding around .25 million rows from access database to jtable, but table model is overflowing. i am getting this error "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC ...
0
votes
1answer
94 views

BufferOverflowException while sending data of specific size

I have bunch of keys and values that I want to send to our messaging queue by packing them in one byte array. I will make one byte array of all the keys and values which should always be less than 50K ...
0
votes
1answer
48 views

LWJGL crashes on glReadPixels after a few frames

I'm using LWJGL to render a triangle to an offscreen framebuffer with renderbuffer. After rendering the scene, I read out the data from the renderbuffer to RAM using glReadPixels. The first few frames ...
2
votes
0answers
252 views

Converting JPEG into Mat (8 bits and 3 channels) — Buffer Overflow Exception

I'm trying to use a filter function from OpenCV in Processing, but before I do, I have to convert my image into a mat that is 8 bits and 3 channels. But whenever I run it, I keep running into a "...
1
vote
1answer
2k views

Why am I getting a java.nio.BufferOverflowException

I tried to create a simple program just for fun, but I'm getting a BufferOverflowException: ByteBuffer byteBuffer = ByteBuffer.allocateDirect(10); FloatBuffer floatBuffer = byteBuffer.asFloatBuffer();...
2
votes
1answer
231 views

JAVA BufferOverflowException, while keeping buffer capacity?

So i have a method that creates an IntBuffer from an ByteBuffer: public static IntBuffer directIntBuffer(int[]buffer){ ByteBuffer bb = ByteBuffer.allocateDirect(4*buffer.length); bb....
-1
votes
2answers
925 views

Handling input-stream overflow (zero-window) in java

We have a system where there are 2 applications. One of these is a legacy application, for which we can't do any code changes. This application is sending messages to second application which is ...
0
votes
3answers
105 views

How to write text into file without waiting for file closure

I am trying to write text into file and I noticed that the file is getting written only when it is closed using close(). This is not a problem when the text is insignificantly small. But since I am ...
0
votes
1answer
298 views

BufferOverFlowException when changing ShortBuffer to IntBuffer

I am trying to patch up an OBJ loading class, as it only supported Short numbers, and I have a large OBJ that goes above the Short number limit. I had to change the code to use Integer Vectors (...
1
vote
1answer
433 views

Java Null Pointer Exception in Android while Instantiating an IntentService from an Activity

I am creating an application which has an activity and an intent service which will be called from this activity. The purpose of the Intent service is to send a file from the android device to a ...
2
votes
3answers
3k views

BufferOverflowException when trying to encode data

I try create encoder for "audio/3gpp" and my app crash. I configurate MediaCodec... String mMime = "audio/3gpp"; mMediaCodec = MediaCodec.createEncoderByType(mMime); MediaFormat ...
0
votes
1answer
219 views

Socket Channel - readIntoNativeBuffer() Error

I have been experiencing this issue for a while now. A quick explanation of the system: A simple application will read in data over a tcp connection. The application uses Socketchannel object to ...
-1
votes
2answers
1k views

Buffer overflow in JAVA

Ok so I'm doing some research on buffer overflows. I've got a C program that is vulnerable to a variable attack that I'm trying to convert to java. Does anyone think they could help me? So far I still ...
2
votes
4answers
235 views

Excessive LinkedList using

I have a question about linked lists in java. I saw an interesting approach of getting arguments from the commandline into a java program, via String[] args. The very interesting part on this was that ...
2
votes
2answers
5k views

Pushback buffer overflow - but my buffer isn't full yet?

I'm implementing a syntax reader as a spin-off from a homework assignment, and I'm reading an XML file one character at a time. My goal is to take the code that I passed the lab assignment with, and ...
4
votes
2answers
3k views

How does memory management in Java and C# differ?

I was reading through 2010 CWE/SANS Top 25 Most Dangerous Programming Errors and one of the entries is for Buffer Copy without Checking Size of Input. It suggests using a language with features to ...
89
votes
10answers
60k views

Does Java have buffer overflows?

Does Java have buffer overflows? If yes can you give me scenarios?