News for hackers. Stuff that matters.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by postalrat on Tuesday September 26, 2023 @09:52AM (#37659309)
Is JavaScript a memory safe language?
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by albntomat0 on Tuesday September 26, 2023 @10:00AM (#37659424)
Yes, and so are Python, Lisp, Haskell, and a million other languages that were available in 2010.

None of those are suitable options for an image decoding library on the range of WebP supported platforms.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by mrtksn on Tuesday September 26, 2023 @10:13AM (#37659645)
>None of those are suitable options for an image decoding library on the range of WebP supported platforms.

What makes these unusable for this task?

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by sp332 on Tuesday September 26, 2023 @10:17AM (#37659712)
They need a large runtime and are slow to start up.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by mrtksn on Tuesday September 26, 2023 @11:38AM (#37660946)
Is that true for all memory safe languages? Why?
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by marcosdumay on Tuesday September 26, 2023 @12:29PM (#37661734)
> Is that true for all memory safe languages?

No. That is true for the list upthread (well, if you consider runtimes measuring a couple of MB "large", it's reasonable but quite arguable). It doesn't have much correlation with any feature.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by pjmlp on Tuesday September 26, 2023 @11:31AM (#37660840)
Modula-2, Ada, Object Pascal, D would be.

What makes them unsuitabe is lack of widespread compiler support across those platforms, if we ignore how long Ada has been available in GCC.

And Modula-2 is now in GCC as well.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by assassinator42 on Tuesday September 26, 2023 @12:46PM (#37662036)
Ada has the bounds checking, but doesn't (AFAIK) have a safe way to deallocate dynamic memory. At least as of now, there is a proposal to add something like Rust in the future. It also has memory unsafe concepts like specifying an address for a variable.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by pjmlp on Tuesday September 26, 2023 @04:13PM (#37665218)
Yes it does, this isn't Ada83 we are talking about.

Well Rust also has unsafe, better not use it.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by unilynx on Tuesday September 26, 2023 @09:55AM (#37659369)
It is. and so is WASM, but both probably aren't fast enough
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by Thews on Tuesday September 26, 2023 @10:14AM (#37659660)
I think there is a ~35% hit with emscripten