<div dir="ltr">Hello,<br><div><div>Hello,<br></div>I am attaching diff file which is basically of date.cc and datematchdecider.cc in <b>/xapian-application/omega/</b>
 in which i modified atoi function. If i need to submit patch in some other way please let me know. <b></b><br><br></div>I
 have checked for overflow and underflow condition using errno variable 
which becomes equal to ERANGE when underflow or overflow occurs and for 
checking underflow or overflow the strtol returns LONG_MIN and LONG_MAX 
for this i had to add climits header file and also i had to add errno.h 
header file for errno variable.<br><br><div class="gmail_extra"><br></div><div class="gmail_extra">Thank You,<br></div><div class="gmail_extra">Priyank Bhatt<br><br></div><div class="gmail_extra"><div class="gmail_quote">On 20 December 2014 at 23:37, Priyank Bhatt <span dir="ltr"><<a href="mailto:priyankbhatt1234@gmail.com" target="_blank">priyankbhatt1234@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>ok i will submit the patch , But What should be done if strtol or strtoll overflows or underflow's .<br><br><br><br></div>Thank You,<br></div>Priyank Bhatt<br></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 20 December 2014 at 03:43, Olly Betts <span dir="ltr"><<a href="mailto:olly@survex.com" target="_blank">olly@survex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Dec 20, 2014 at 12:42:08AM +0530, Priyank Bhatt wrote:<br>
> As James said I am attaching two file *date.cc* and *datematchdecider.cc*<br>
<br>
Please send patches, not complete source files:<br>
<br>
<a href="http://trac.xapian.org/browser/git/xapian-core/HACKING#L1176" target="_blank">http://trac.xapian.org/browser/git/xapian-core/HACKING#L1176</a><br>
<br>
Patches are much smaller, and don't require the reviewer to work out the<br>
exact version of the source file you started from.<br>
<br>
Cheers,<br>
    Olly<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>