]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
Handle negative value in padding (#3389)
authorTreboko <redacted>
Sun, 24 Aug 2025 16:34:23 +0000 (18:34 +0200)
committerGitHub <redacted>
Sun, 24 Aug 2025 16:34:23 +0000 (01:34 +0900)
commit7745fcf32846006128f16de429cfe1677c963b30
tree4ea49ce3b2b2ff9a371f6c50dd82772caecf1d23
parentc09b0e0c4c20e81ad974146c00321bee83df38db
Handle negative value in padding (#3389)

this might happen depending on the way the $stderr.winsize is defined. If the expression "$stderr.winsize[1] - line.size" in Line 114 gets negative, we will get a "negative argument" exception in the padding calculation
bindings/ruby/lib/whisper/model/uri.rb