<div>
<div>Hi,</div>
</div>
<div> </div>
<div>I found that dnsmasq doesn't reply <span style="color: #222222; font-family: arial, verdana, tahoma, verdana, helvetica; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">dhcpv6 relay-forward packets after applying the patch of CVE-2017-14494.</span></div>
<div>It seems like the boundary check in the patch is wrong.</div>
<div> </div>
<div>The following commit should fix the problem.</div>
<div>Could you please help confirm the issue?</div>
<div>Thank you very much.</div>
<div> </div>
<div> </div>
<div>---</div>
<div> src/rfc3315.c | 2 +-</div>
<div> 1 file changed, 1 insertion(+), 1 deletion(-)</div>
<div> </div>
<div>diff --git a/src/rfc3315.c b/src/rfc3315.c</div>
<div>index c3c1c95..99b310a 100644</div>
<div>--- a/src/rfc3315.c</div>
<div>+++ b/src/rfc3315.c</div>
<div>@@ -216,7 +216,7 @@ static int dhcp6_maybe_relay(struct state *state, void *inbuff, size_t sz,</div>
<div> </div>
<div> for (opt = opts; opt; opt = opt6_next(opt, end))</div>
<div> {</div>
<div>- if (opt6_ptr(opt, 0) + opt6_len(opt) >= end) {</div>
<div>+ if (opt6_ptr(opt, 0) + opt6_len(opt) > end) {</div>
<div> return 0;</div>
<div> }</div>
<div> int o = new_opt6(opt6_type(opt));</div>
<div>--</div>
<div>1.9.1</div>
<div> </div>
<div class="syno-mc-signature">
<div style="font-family: arial, verdana, tahoma, verdana, helvetica; font-size: 13.3333px; line-height: 18.6667px; margin: 0px">Best Regards,</div>
<div style="font-family: arial, verdana, tahoma, verdana, helvetica; font-size: 13.3333px; line-height: 18.6667px; margin: 0px">Yiwen</div>
<div style="font-family: arial, verdana, tahoma, verdana, helvetica; font-size: 13.3333px; line-height: 18.6667px; margin: 0px"> </div>
</div>