Skip to content

Bug: gguf.cpp does not update nbytes_remain after file fseek for alignment #22220

@Mibu287

Description

@Mibu287

Name and Version

Commit: bcdcc10 (tag: b8846)

Operating systems

No response

Which llama.cpp modules do you know to be affected?

No response

Problem description & steps to reproduce

In this line gguf.cpp#L703, file is updated by function fseek but gr.nbytes_remain is not updated accordingly ==> The variant nbytes_remain = file_remain(file) is violated.

Suggested fix: Update nbytes_remain after fseek

First Bad Commit

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions