Commits
- Commit:
b94206d0acc1c55bad1233c35f959fa7c4af297b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free obj_id and reflist in got_output_file_blame
ok stsp@
- Commit:
a33a44db81f52e0217b4e38e2e180442521f37ad
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: got_output_file_blame: free lines on error path
ok stsp@
- Commit:
8a4f92ca904ede1f7a5e7e1bafdf8be7974943ed
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free eline in got_gotweb_blame_cb loop
ok stsp@
- Commit:
e4213243b6508845e530a1aadef9fe28d49a1ff2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop superfluous check
commit_id is not NULL if got_repo_match_object_id returned
successfully. ok stsp@
- Commit:
e5e662e42c45f0d30f5f97fb0e2ad5f3c4f8b488
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: kill unused id_str in got_output_repo_tree
ok stsp@
- Commit:
2c6b597256598f3a2f21b529eef551b51db5adb5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: avoid extra strdups in got_output_repo_tree
ok stsp@
- Commit:
6977f45a0d6e4dceb507913771e10106042dbaca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: avoid extra variable in got_output_repo_tree
in_repo_path was used only to build a path, it's then assigned to path
(which is NULL at that point.) Just asprintf into path.
ok stsp@
- Commit:
4a962942057bae9fbd47916e75d554fb52e0ec37
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: plugs leaks in got_get_repo_commits
call got_get_repo_commit only once and avoid leaking the field of
repo_commit at each loop iteration.
ok stsp@
- Commit:
dfa5768dfba3067f15757fc77677e1ba43b33b57
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free in_repo_path in got_get_repo_commits; ok stsp@
- Commit:
bce44e0b80af65d03bd0422e6468d7055e76b848
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: always free ref in got_get_repo_commits
some code-paths may leak it. ok stsp@
- Commit:
bc95141ca7ce90e4b19a251b36c87601c150bb3f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: don't close tag in got_get_repo_tags too early
it's still used a bit later, so defer the free'ing at the next loop
iteration or at function end.
- Commit:
5a57034b6f08eec784b8fe3c0b0b734eb2d4605a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free commit_msg0 only at the end of got_get_repo_tags
in case of a failure between when it's allocated and when it's released
it might get leaked otherwise.
ok and semplification stsp@
- Commit:
b163541dd9b5a61e6be0e3956ab1ed2c591aace5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: plug some leaks in got_get_repo_tags
ok stsp@
- Commit:
625e5896fc9ecf87ccfc92ad2a65cd3be58f73c0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free all allocated fields of repo_tag
got_get_repo_tags needs some tweaking to how tag_commit is allocated
too.
ok stsp@
- Commit:
89ae185cb4dd6d82b92a79daa8ef484b7da78ec3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix possible leaks when handling errors
all very unlikely.
part of a bigger diff that's ok stsp@
- Commit:
341fa7cacc77a0a56e7e6eebec0b591ea6d8003b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: minor tweaks
drop:
- a tautological s[strlen(s)] == '\0'
- a few duplicates checks
- a lone if (error) when it's always NULL
- an extra NULL check
part of a bigger diff that's ok stsp@
- Commit:
e9d3ad59c92a3ce340f8ac1bd0b0dff75dc3d951
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix dup(2) error checking in got_gotweb_openfile()
- Commit:
dd84f50528e78a6c691c9979129f2ee6564bee96
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in got_operations.c, remove error variables which were only used to return NULL
- Commit:
1999985f9a161118336b49101e3aab94bced7722
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
get rid of (null) on the index page. ok stsp
- Commit:
b7efc9b3ebc727cc522b23b39d3eec8f34166e66
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix memory leak introduced in d927f8c
ok tracey@
- Commit:
d927f8c8203baf6607d4e64fa3520e2d164100e6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: make sure to escape possibly unsafe strings
this fixes only the HTML escaping of strings, the urlencode is still
missig.
while here also plug a memory leak in gotweb_render_branches and drop
some needless ternary operators.
ok tracey@
- Commit:
01498c42e0fc9fb6355312a236656cf2f36cebc0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add fcgi_printf
instead of fcgi_gen_response which outputs only a fixed strings provide
a printf-like fcgi_printf: it greatly simplifies the generation of the
HTML pages.
While here also (probably) fix some HTML errors: the output was verified
with the W3C validator and it's correct (in the sense that the tags are
properly closed, there are still some other things the validator
complains about.)
ok/encouragement baseprime@, ok jamsek
Thanks for reading such a boring diff!
- Commit:
85f2c2e0132ed34974446382474602b11d336f3a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix overflow in blame callback
spotted by noticing gotwebd crashing on some blame requests.
Diff from stsp@ with a fix from tracey@, I'm committing it only because
he is short on time.
ok stsp@
- Commit:
bf80b15220f51490025e916633cdd70816113604
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix alternate colors in tree entries
it was broken in 7ecc454 because now we're emitting tags with multiple
`class' attributes (by mistake) and only the first one is used.
However, instead of fixing the HTML `class' attribute, use a CSS
selector to alternate the background colors.
ok tracey@
- Commit:
7ecc4542fefb0ad0b7babe055da2f9ac447a906b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: switch some HTML IDs to classes
HTML IDs are meant to be unique across the page. While here fix two
small errors in the generated HTML (one missing closing div and one
extra.)
ok tracey@