Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes #43

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Minor fixes #43

merged 3 commits into from
Aug 27, 2024

Conversation

rustyrussell
Copy link
Contributor

I've got a massive rework of your cursor routines, but it turned up four problems.

Three are fixed here, the other I'm not so sure of. This line in content_parser.c is completely bogus:

	parser.blocks->blocks_size = parser.buffer.p - blocks_start;

These are not even pointers into the same buffer, so block_size is set to random bignum. Fortunately the code which uses it as a limit doesn't hit the limit...

For whatever reason, the all-in-one line does not work to make
objects depend on headers.

Signed-off-by: Rusty Russell <[email protected]>
Sure, this format would be nice, but it's not what the code does.

Signed-off-by: Rusty Russell <[email protected]>
This will find strings which match the beginning of other strings,
which seems wrong.

Signed-off-by: Rusty Russell <[email protected]>
@jb55 jb55 merged commit da79a2b into damus-io:master Aug 27, 2024
1 check passed
@rustyrussell rustyrussell deleted the guilt/new-cursor branch August 27, 2024 10:30
@jb55
Copy link
Contributor

jb55 commented Aug 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants