summary refs log tree commit diff homepage
path: root/2017/src/bin/day09.rs
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-12-03 22:28:54 -0500
committerJune McEnroe <june@causal.agency>2020-11-22 00:13:50 -0500
commit63cdee3dda8ee4c6be2107e54bb95fdf8e2a7efc (patch)
tree1c66c863bc80b5e1965164e44868382bed006553 /2017/src/bin/day09.rs
parentDay 1 in Rust (diff)
downloadaoc-63cdee3dda8ee4c6be2107e54bb95fdf8e2a7efc.tar.gz
aoc-63cdee3dda8ee4c6be2107e54bb95fdf8e2a7efc.zip
Day 1 part 2
Diffstat (limited to '2017/src/bin/day09.rs')
0 files changed, 0 insertions, 0 deletions
Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2012-03-18segfault fix on some bogus requestsEric Wong ctx.qry.head can be NULL in some cases due to bad requests by weird bots. I managed to reproduce with: PATH_INFO=/repo.git/shop.php QUERY_STRING=id= Signed-off-by: Eric Wong <normalperson@yhbt.net> 2012-03-18use correct type for sizeofJamie Couture **L would have worked well too. Depending on the distribution sizeof *L may return 8 instead of 4. **L is preferable, but since we don't expect this datatype to change very often, sizeof int is less subtle and easier to understand. Signed-off-by: Jamie Couture <jamie.couture@gmail.com> 2012-01-08ui-ssdiff.c: correct length check for LCS tableEric Wong Each individual string may be too long for its respective dimension of the LCS table. Signed-off-by: Eric Wong <normalperson@yhbt.net> 2012-01-03Fix segmentation fault in empty repositoryJohn Keeping When a repository is empty, the ATOM feed link is written in the header, but this involves formatting ctx->qry.head which is NULL in this case. With glibc, vsnprintf formats "%s" with a NULL input as "(null)" but on Solaris this results in a segmentation fault. Since we don't have a meaningful head for the atom feed in an empty repository, it's simplest not to write out the link element at all. Signed-off-by: John Keeping <john@metanate.com> 2012-01-03Makefile: fetch git tarballs from http://hjemli.net/git/git/Lars Hjemli The git tarballs are currently not available from kernel.org, so for now the makefile will download autogenerated tarballs from cgit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2012-01-03fix css color value and vertical-align valueNorberto Lopes 2012-01-03ui-ssdiff.c: set correct diffmode in "control panel"Tim Chen When side-by-side-diffs=1 was set in cgitrc, specifying 'ss=0' in the querystring would not set the 'unified' option as active in the dropdown box used to select diffmode. 2012-01-03Fix diff mode switching when side-by-side-diffs=1Tim Chen When side-by-side-diffs=1 was set in cgitrc, specyfing 'ss=0' in the query- string would not switch to unified diffs. This patch fixes the issue by introducing a separate variable to track the occurrence of "ss" in the querystring. 2012-01-03ui-log.c: do not show remote heads if enable-remote-branches=0Georg Müller If remote branches are not enabled, the branches are still listed in the log view. This patch removes them if enable-remote-branches=0. 2012-01-03Add sort parameter to pager of repo listTobias Grimm When the repolist is paged, the page-links are missing the sort parameter, causing the initial page to be custom sorted, but any clicked page will then be with the default sort order again. 2012-01-03ui-ssdiff: move LCS table away from the stackJamie Couture Printing deferred line changes for files containing long lines would cause a segfault. - limit LCS table size: 128x128. - move LCS table to global context: avoid allocating/freeing memory for every deferred line change. Signed-off-by: Jamie Couture <jamie.couture@gmail.com> 2012-01-03shared.c: Only setenv() if value is non-nullLukas Fleischer Some setenv() implementations (e.g. the one in OpenBSD's stdlib) segfault if we pass a NULL value. Only set environment variables if the corresponding settings are defined to avoid this. Note that this is a minor behaviour change as environment variables were supposed to be set to an empty string if a setting was undefined. Given that this feature isn't part of any official release yet, there's no need to worry about backwards compatibility, really. Change the documentation accordingly. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2012-01-03shared.c: Remove unused "linux/limits.h" includeLukas Fleischer This isn't used anywhere and prevents the code from being compiled on other platforms, such as *BSD. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2011-07-22Fix potential XSS vulnerability in rename hintLukas Fleischer The file name displayed in the rename hint should be escaped to avoid XSS. Note that this vulnerability is only applicable when an attacker has gained push access to the repository. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2011-07-22Remove dead initialization in cgit_parse_commit()Lukas Fleischer The value stored to "t" during its initialization gets overwritten in any case, so just leave it uninitialized. Spotted by clang-analyzer. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2011-07-21CGIT 0.9.0.2Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2011-07-21html.c: avoid out-of-bounds access for url_escape_table