about summary refs log tree commit diff stats
path: root/src/tlv.c
Commit message (Collapse)AuthorAgeFilesLines
* more protection against data lossKartik K. Agaram2021-12-171-1/+11
|
* .Kartik K. Agaram2021-12-171-13/+0
|
* .Kartik K. Agaram2021-12-111-0/+2
|
* handle non-existent fileKartik K. Agaram2021-12-111-1/+5
|
* snapshot: migrate all sample apps to new formatKartik K. Agaram2021-12-111-1/+3
|
* snapshot: writing working?Kartik K. Agaram2021-12-111-5/+99
| | | | | | This is a complete mess. I want to abstract reading multiline strings behind a function, but the lookahead requirements for that are quite stringent. What's a reasonable abstraction here?
* snapshot: key/value lines after multiline stringsKartik K. Agaram2021-12-111-29/+43
|
* snapshot: start reading a new formatKartik K. Agaram2021-12-111-0/+73
I really wanted to avoid getting into defining or parsing new file formats. However, using the entire power of Lua is not ideal, as described earlier in Konrad Hinsen's bug. In addition to everything else, it's a vector for arbitrary code execution when someone loads an untrusted image. I could use JSON, but it requires ugly string escaping. Seems cleaner to just use YAML. But YAML is complex and needs its own dependencies. If I'm going to do my own, might as well make the multi-line string format really clear. I can't yet write the new format.