-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, Apr 02, 2020 at 07:45:00PM -0500, Jason Phan wrote:
> On Apr 03, Marek Marczykowski-Górecki wrote:
> > Yes, self-explanatory names should be enough for simple functions. But 
> > still,
> > more complex functions, or with non-trivial arguments should have a 
> > docstring.
> 
> Okay. I'll go through again and make sure that's the case.
> 
> > Right now windows compatibility (especially on the server side) isn't that
> > important.
> 
> W00t!
> 
> > Nothing specifically against. But also be careful about resources - for
> > example rendering all the pages in parallel is a bad idea, since there
> > may be many of them (and in fact we do have a test that tries to convert
> > 500 pages PDF file).
> 
> I was trying to come up with a limit on the number of simultaneous
> renderings. Maybe something like half the total # of pages and if that's
> over some number like 10 or something, then the limit is 10.

Sounds reasonable.

> > On the other hand, using a single DisposableVM means one malicious PDF
> > could access/modify other files you're trying to convert. IMO a better
> > approach would be to use separate DisposableVMs, but _independently_
> > optimize their resource usage (for example you don't need the whole
> > graphical stuff and most of other service just to convert PDF -> RGB).
> 
> Good point. I'll read some more on Qubes to see how to go about doing that.
> 
> 
> Also, I knew I would forget a question... While we can "sanitize" data sent
> by the server, we can never really "verify" them since that would require
> parsing the PDF client-side. So should variables received from the server
> always have the "untrusted_" prefix? That's sort of the logic I'm going with
> right now.

The idea is to verify if they are non-malicious, not necessary
"correct". So, as soon you verify they conform to the expected format,
you can drop "untrusted_" prefix.
Also, be careful about things like server sending too much or too little
data.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl6GiGwACgkQ24/THMrX
1yzj7Af9GPQVlXdDi4yZYEfAj0Vm1g3DstYn0LjFVgvdIkif2eXohNUhP4UXfIUW
wRSnWs70/9kEyRQH/msLF0I1rEGMQG2O0aj3xiDLG3SWeTgtcH8BQ6aIRekqHlUb
7+z0JhB0x1irurvRgxuLcpBWXz5c9Re6ZwiY3tw+PrtN0tAjUOqC4iKGKsOfJI1C
NdnQA4L8BUlYCxgpQnaC9Js9SW6RJ8AFNK+Y61NgCwQNlZqBI9hQHq4kjft5zLhm
Z3mIpiGRJH/cwbfx2tqo3+3DBH4ib66n31qoNv92LWQrRlx4A0FOpKF1mbUyFHze
1tccnamPZq5UHWV/KIcrj8PUa1TV8w==
=JDZF
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/20200403005051.GR18599%40mail-itl.

Reply via email to