Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ihuman
on Nov 9, 2016
|
parent
|
context
|
favorite
| on:
Spotify excessively writing to drive
6 or 7 x's? In your example, you used 6.
cjg_
on Nov 9, 2016
|
next
[–]
6, it wont start otherwise. I left the ; in.
philipkglass
on Nov 9, 2016
|
parent
|
next
[–]
Hmm, I used 7 and my patched client is running fine. Maybe it's enough to garble VACUUM so it doesn't do anything valid.
cjg_
on Nov 9, 2016
|
root
|
parent
|
next
[–]
If you replaced the ; also, you also didn't change the total length of the strings, I think that's what the problem is.
philipkglass
on Nov 9, 2016
|
prev
[–]
7 x's, one to overwrite all of VACUUM; including the terminating semicolon.
I didn't count the x's in the quoted text that I copied from the thread.
0x0
on Nov 10, 2016
|
parent
[–]
If you overwrite the ; is there not a risk you might cause the next legitimate sqlite operation to fail?
SturgeonsLaw
on Nov 10, 2016
|
root
|
parent
[–]
They might get lucky and overwrite the last SQL statement in the method. Seems likely with a statement like VACUUM.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: