Ticket #4222 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

fix out of bound read at g_utf8_get_char_validated()

Reported by: and Owned by: andrew_b
Priority: major Milestone: 4.8.27
Component: mc-search Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master

Description

Fix out of bound read at g_utf8_get_char_validated()
because we told g_utf8_get_char_validated() to expect nul-terminated string.

Test case: search for "test" in
https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/linux-firmware-20201218.tar.xz

Attachments

mc-4222-regex_c-fix-out-of-bound-read.patch (4.3 KB) - added by and 3 years ago.

Change History

Changed 3 years ago by and

comment:1 Changed 3 years ago by andrew_b

  • Priority changed from minor to major
  • Owner set to andrew_b
  • Status changed from new to accepted
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.27

comment:2 Changed 3 years ago by andrew_b

  • Component changed from mc-core to mc-search

comment:3 Changed 3 years ago by andrew_b

  • Votes for changeset set to andrew_b
  • Branch state changed from on review to approved

comment:4 Changed 3 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:5 Changed 3 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.