Projects
Factory:RISC-V:Base
expect
_service:tar_scm:expect-5.45-match-gt-numchars-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:expect-5.45-match-gt-numchars-segfault.patch of Package expect
diff -up expect5.45/expect.c.orig expect5.45/expect.c --- expect5.45/expect.c.orig 2012-02-06 14:15:13.469490744 +0100 +++ expect5.45/expect.c 2012-02-06 14:16:23.596837896 +0100 @@ -2363,7 +2363,12 @@ expMatchProcess( /* "!e" means no case matched - transfer by default */ if (!e || e->transfer) { - int remainder = numchars-match; + int remainder; + if (match > numchars) { + match = numchars; + eo->matchlen = match; + } + remainder = numchars-match; /* delete matched chars from input buffer */ esPtr->printed -= match; if (numchars != 0) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2