Skip to content

lib/vsprintf: Fixes size check

Masami Hiramatsu (Google) lkml 6 versions – In review

Get series with b4
b4 am 177452711082.197965.4952719534268072174.stgit@devnote2

Versions newest first · linked by author and title

  1. v6 Latest2 patches 3 repliesIn review
  2. v52 patches 5 repliesSuperseded
  3. v42 patches 13 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches9 repliesSuperseded
v22 patches4 repliesSuperseded
v11 patch2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/vsprintf: Fix to check field_width and precisionlib/vsprintf.c+14 -220 replies
2/2lib/vsprintf: Limit the returning size to INT_MAXlib/vsprintf.c+13 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPetr Mladek
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/2] lib/vsprintf: Fixes size check

Hi,

Here is the 6th version of patches to fix vsnprintf().

- Fix to limit the size of width and precision.
- Warn if the return size is over INT_MAX.

Previous version is here;

https://lore.kernel.org/all/177444525139.185641.12184379647176430297.stgit@devnote2/

This version just makes function header and WARN_ONCE() to one line[1/2]. No functional change.

Thank you,

---

Masami Hiramatsu (Google) (2):
lib/vsprintf: Fix to check field_width and precision lib/vsprintf: Limit the returning size to INT_MAX

 lib/vsprintf.c |   51 +++++++++++++++++++++++++++------------------------
 1 file changed, 27 insertions(+), 24 deletions(-)

--
Masami Hiramatsu (Google) <[email protected]>