libgocryptfs/internal
Jakob Unterwurzacher 4da245c69d fusefrontend_reverse: fix 176-byte names
A file with a name of exactly 176 bytes length caused this error:

  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY: No such file or directory
  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name: No such file or directory
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name

Root cause was a wrong shortNameMax constant that failed to
account for the obligatory padding byte.

Fix the constant and also expand the TestLongnameStat test case
to test ALL file name lengths from 1-255 bytes.

Fixes https://github.com/rfjakob/gocryptfs/issues/143 .
2017-10-01 13:50:25 +02:00
..
configfile exitcodes: specific codes for failure to read or write gocryptfs.conf 2017-05-14 14:30:50 +02:00
contentenc contentenc: deduplicate AD packing into new concatAD() func 2017-09-17 11:21:48 +02:00
cryptocore Fix misspellings reported by goreportcard.com 2017-08-21 21:06:05 +02:00
ctlsock Fix typos found by Misspell 2017-05-07 12:22:15 +02:00
exitcodes Add "-trace" flag (record execution trace) 2017-06-07 22:09:06 +02:00
fusefrontend macos: automatically remove .DS_Store on Rmdir 2017-09-05 22:47:15 +02:00
fusefrontend_reverse fusefrontend_reverse: fix 176-byte names 2017-10-01 13:50:25 +02:00
nametransform dirivcache: add better function comments + a sanity check on Store() 2017-09-03 13:53:50 +02:00
openfiletable openfiletable: rename WriteLock to ContentLock 2017-05-01 21:57:18 +02:00
pathiv pathiv: fix test failure on Go 1.6 2017-05-31 08:21:36 +02:00
prefer_openssl prefer_openssl: default to Go GCM on OSX 2016-12-10 21:04:17 +01:00
readpassword exitcodes: add code 22 for "password is empty" 2017-05-14 14:02:08 +02:00
serialize_reads fix golint complaints 2017-04-29 14:50:58 +02:00
siv_aead siv_aead: fix trivial typo in comment 2017-09-17 11:42:46 +02:00
speed fix golint complaints 2017-04-29 14:50:58 +02:00
stupidgcm macos: make testing without openssl work properly 2017-07-14 23:22:15 +02:00
syscallcompat syscallcompat: Getdents: warn once if we get DT_UNKNOWN 2017-09-03 15:05:54 +02:00
tlog Drop Go 1.4 compatability code everywhere 2017-03-05 17:44:14 +01:00