Any idea ?

<!doctype html public “-//w3c//dtd html 4.0 transitional//en”>

Hi,
I'm trying to find a bug without success.

I have a resource manager who generates dynamically some pseudo files.
When I try to open such file, I have two different issues:
If the file is smaller than 42 bytes, it works well.
If the file is larger than 42 bytes, io_open_default() set ocb->offset with (file_size - 42) and I get a SIGSEGV in my io_read().

How io_open_default() can do this substraction?

Any idea about this kind of problems?

Thanks,
Alain.

Alain Bonnefoy wrote:

Hi,
I’m trying to find a bug without success.

I have a resource manager who generates dynamically some pseudo files.

When I try to open such file, I have two different issues:
If the file is smaller than 42 bytes, it works well.
If the file is larger than 42 bytes, io_open_default() set ocb->offset
with (file_size - 42) and I get a SIGSEGV in my io_read().

You are exceeding the 9*6 limit.

Sorry, couldn’t resist. :slight_smile:


How io_open_default() can do this substraction?

Any idea about this kind of problems?

Thanks,
Alain.