Re: [OT] iscan compiled on debian10 works and compiled on debian11 does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anno domini 2023 Mon, 8 May 17:24:02 -0700
 Mike Bird via tde-devels scripsit:
> On Mon May 8 2023 16:47:56 deloptes via tde-devels wrote:
> > I did some debugging and pinpointed sscanf. It is not reading strings
> > properly.
> > Do you have any idea what could be the reason for this?
> >
> > see attached for an example where the format and the string are from the
> > code and configuration respectively
>
> %as is looking for a float so let's ignore that.
>
> If we switch back to %s it's looking for a string which would be
> great except no memory has been allocated for the strings.
>
> The attached works with both gcc and clang but the important thing
> to remember is NEVER NEVER NEVER use scanf or any variant thereof.
>
> https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/dangers-c.html

Sorry to spoil the party, but on this page contains errors (I have not read further
) "read(fd, &len, sizeof(len));" is utterly BS.

>
> --Mike
>
>



--
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
____________________________________________________
tde-devels mailing list -- devels@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devels-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/devels@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux