Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
3 votes
3 answers
342 views

I'm trying to do the very basics of a buffer overflow, nothing illegal at all. My understanding of the code below is that the overflowing buffer doesnt hold enough space for all the data being written,...
Luke's user avatar
  • 41
1 vote
1 answer
83 views

In a Nodejs project, I am using PSD.js to generate a png from a psd. I am using the .toPng() method. I would like to go from this png object to a buffer without saving to the file system. I have ...
3 votes
1 answer
107 views

I encounter a very strange case when extracting value of a single point from a raster with rasterio: from rasterio import open as rs_open from rasterio.mask import mask as rs_mask from shapely....
19 votes
7 answers
3k views

I'm trying to read a package from a buffer, decode it, and then return a package that might contain a requested info or call a specific function depending on the package I received. I'd like to know ...
0 votes
3 answers
118 views

#include <stdio.h> #include <stdlib.h> #define BUF_SIZE 1024 int main() { char *buf = (char*)malloc(BUF_SIZE*sizeof(char)); fgets(buf, BUF_SIZE, stdin); int a = 0; sscanf(buf, ...
0 votes
1 answer
81 views

I have an indicator that draws dashed lines in red or blue as needed for support and resistance levels. However, I have a difficult time seeing the lines on the black background charts, so I would ...
3 votes
1 answer
150 views

The spec says the following for creating an object using an existing storage - [intro.object#3]: If a complete object is created ([expr.new]) in storage associated with another object e of type "...
5 votes
1 answer
128 views

This is a follow-up on: Why is it UB to pass a char array as the argument of placement new? The spec says the following for creating an object using an existing storage - [intro.object#3]: If a ...
0 votes
0 answers
59 views

For context, I'm working with .hdf files, which are used to model floods in HEC-RAS. The code I'm working with is this: def patch_mannings_n(class_hdf_path, material_ids, new_values, material_names): ...
Irideae's user avatar
  • 11
1 vote
0 answers
143 views

I'm using Redis for caching in our Next.js application and recently upgraded from v14.2 to v15.3. Previously I've used @neshca/cache-handler for cache handling, but the latest version(1.9.0) of @...
1 vote
1 answer
94 views

I'm learning C. I'm building a P2P content distribution system and as part of that system there is a section of code which reads the network. To receive the data I set a buffer: char raw_buf[4096]...
2 votes
2 answers
163 views

My app first takes some input, then it 'thinks' showing a progress bar, then throws an exit code and waits with getchar() for ENTER to be clicked before exiting. The problem is that if I click ENTER ...
Greg's user avatar
  • 171
0 votes
0 answers
92 views

I'm currently working with windows kernel driver that allocate memory which should be shared with a program. Afaik an application can ask the driver to create a memory buffer of max 4G size for ...
0 votes
1 answer
55 views

I try so send nodejs Buffers via node:net Server and Socket. That works fine in principle. But when I re-create the Buffer on the receiver side using Buffer.concat(), this is really slow. Expected: ...
GerritP's user avatar
  • 33
-1 votes
1 answer
69 views

I'm trying to write a method in my Azure Function using PdfSharp that will download a png from a url, convert it to a pdf and upload it to the blob store. However, I keep running into an issue with ...

15 30 50 per page
1
2 3 4 5
...
473

AltStyle によって変換されたページ (->オリジナル) /