This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [review v2] wcsrtombs: Do not call wcsnlen on input with wrong length [BZ #23711]
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>, Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org, "Carlos O'Donell" <carlos at redhat dot com>
- Date: Wed, 30 Oct 2019 12:01:35 -0400
- Subject: Re: [review v2] wcsrtombs: Do not call wcsnlen on input with wrong length [BZ #23711]
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca x9UG1ZPc004631
- References: <gerrit.1572431418000.I5b28fb36c8d224cf69910fb436ff76bff8f129f6@gnutoolchain-gerrit.osci.io> <20191030103237.7405620AF6@gnutoolchain-gerrit.osci.io> <87ftja34ft.fsf@oldenburg2.str.redhat.com> <871ruu8bzl.fsf@redhat.com>
On 2019-10-30 11:54 a.m., Sergio Durigan Junior wrote:
> Anyway, it is strange because gerrit should have sent a "new change"
> notification when you edited the commit message. Instead, it just sent
> a "comment" notification.
>
> If you go the web interface, you can see that the difference between v1
> and v2 is exactly the commit message. Something else that might have
> happened is gerrit not sending a "new change" notification when just the
> commit message is edited (although I find this unlikely).
I suppose if he did the operations in this order:
1. Edit the commit message (which creates v2)
2. Make the change ready for review
Then when v2 is created, the change is still WIP, so no notification is sent.
Then, step #2 is akin to leaving a global comment on the change, which doesn't
include the full diff (because presumably the full diff would have been sent
before).
I think we need to check if there's the possibility of generating a notification
with the full diff when the wip -> ready state transition happens.
Simon