Navigation
Recherche
|
Run Linux inside a PDF file via a RISC-V emulator
lundi 3 février 2025, 11:49 , par OS News
You might expect PDF files to only be comprised of static documents, but surprisingly, the PDF file format supports Javascript with its own separate standard library. Modern browsers (Chromium, Firefox) implement this as part of their PDF engines. However, the APIs that are available in the browser are much more limited.
The full specfication for the JS in PDFs was only ever implemented by Adobe Acrobat, and it contains some ridiculous things like the ability to do 3D rendering, make HTTP requests, and detect every monitor connected to the user’s system. However, on Chromium and other browsers, only a tiny subset of this API was ever implemented, due to obvious security concerns. With this, we can do whatever computation we want, just with some very limited IO. ↫ LinuxPDF GitHub page I’m both impressed and concerned.
https://www.osnews.com/story/141668/run-linux-inside-a-pdf-file-via-a-risc-v-emulator/
Voir aussi |
56 sources (32 en français)
Date Actuelle
lun. 3 févr. - 19:36 CET
|