[fossil-users] Bug? fossil_strndup is not added terminating null byte ('\0')

2017-06-08 Thread kowlsd3pw23s
strndup is added terminating null byte. but Fossil_strndup behaves as strncpy. fossil_strndup not added terminating null byte ('\0') when len>=0 src/import.c : fossil_strndup https://www.fossil-scm.org/index.html/artifact?ln=91=14ebf8376b92b944     z[n] = '\0'; test code 

Re: [fossil-users] "fossil http" doubts

2017-06-08 Thread Stephan Beal
On Thu, Jun 8, 2017 at 10:43 PM, Ross Berteig wrote: > For building tools to generally interact with a repo, take a look at the > JSON support. It's (still) not compiled in by default, but builds easily if > requested by ./configure --json. Trivia: the reason it's not

Re: [fossil-users] Improvements to the /reports page

2017-06-08 Thread Andy Bradford
Thus said Roy Keene on Wed, 07 Jun 2017 10:45:27 -0500: > I would benefit from some improvements to the /reports page, such as > the ability to restrict the dates upon which are being reported and > the ability to restrict the report to certain tags. That sounds like it would be useful

Re: [fossil-users] Bug? fossil_strndup is not added terminating null byte ('\0')

2017-06-08 Thread Richard Hipp
On 6/8/17, kowlsd3pw...@yahoo.co.jp wrote: > > > strndup is added terminating null byte. > but Fossil_strndup behaves as strncpy. > fossil_strndup not added terminating null byte ('\0') when len>=0 Good catch. That is only used in one place in the code, but it is

Re: [fossil-users] Patch for setup.c - Was: "fossil http" doubts

2017-06-08 Thread Johan Kuuse
Found another one in tkt.c BR, Johan On Thu, Jun 8, 2017 at 7:10 PM, Richard Hipp wrote: > On 6/8/17, Johan Kuuse wrote: >> Hi, >> >> Playing around with 'fossil test-http' I found an error in the >> /setup_adunit output. >> Patch attached, >> > > Good catch.

Re: [fossil-users] Patch for setup.c - Was: "fossil http" doubts

2017-06-08 Thread Richard Hipp
Thanks. Alternative fix checked in. On 6/8/17, Johan Kuuse wrote: > Found another one in tkt.c > > BR, > Johan > > On Thu, Jun 8, 2017 at 7:10 PM, Richard Hipp wrote: >> On 6/8/17, Johan Kuuse wrote: >>> Hi, >>> >>> Playing around with 'fossil

[fossil-users] Patch for setup.c - Was: "fossil http" doubts

2017-06-08 Thread Johan Kuuse
Hi, Playing around with 'fossil test-http' I found an error in the /setup_adunit output. Patch attached, BR, Johan On Wed, Jun 7, 2017 at 4:16 PM, Johan Kuuse wrote: > On Wed, Jun 7, 2017 at 3:50 PM, Warren Young wrote: >> On Jun 7, 2017, at 7:42 AM, Johan

Re: [fossil-users] Patch for setup.c - Was: "fossil http" doubts

2017-06-08 Thread Richard Hipp
On 6/8/17, Johan Kuuse wrote: > Hi, > > Playing around with 'fossil test-http' I found an error in the > /setup_adunit output. > Patch attached, > Good catch. Fix is checked in. -- D. Richard Hipp d...@sqlite.org ___ fossil-users

Re: [fossil-users] "fossil http" doubts

2017-06-08 Thread Ross Berteig
On 6/7/2017 6:42 AM, Johan Kuuse wrote: Thanks for the input. "fossil test-http" did the trick: webpage=/setup printf "GET $webpage HTTP/1.0\n\n" | fossil test-http My purposes for parsing the built-in web pages are basically two: 1. I want to hack the Fossil code: a. I parse and save