diff options
| author | Julian Andres Klode <jak@debian.org> | 2022-05-24 14:19:04 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2022-05-24 14:19:04 +0000 |
| commit | edffb0ae26935d948ffeb3be229fdcf37d2a1ee1 (patch) | |
| tree | 7a80756ecc96318efed70b2be2bda9d1d43f28f4 /apt-pkg | |
| parent | 5a85469500acea3b797b9b2ddc5d86a3b00c647a (diff) | |
| parent | cacdb54953dbc81eecf4c3a55c132836e7849098 (diff) | |
Merge branch 'flextension-underflow' into 'main'
Fix integer underflow in flExtension
See merge request apt-team/apt!240
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index eb5dc859d..10c656301 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -691,7 +691,7 @@ string flExtension(string File) if (Res == string::npos) return File; Res++; - return string(File,Res,Res - File.length()); + return string(File,Res); } /*}}}*/ // flNoLink - If file is a symlink then deref it /*{{{*/ |
