fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Axel Stenkil Forsman, Huan Thieu Nguyen, Jinyi Xian, and waffl3x for assigning their copyright to the FSF! #GNU #Emacs #GCC Learn more at https://u.fsf.org/3ht #CopyrightAssignments

Wild_Rose, to gamedev

Oh, wtf? I have never had gcc act like clippy before. #gamedev #gcc

graywolf, to random
@graywolf@emacs.ch avatar

Is there anything wrong with this #c code (I am compiling with #gcc 13.2.1)?

int
stravis(char **outp, const char *src, int flag)
{
char *buf;
int len, serrno;

buf = calloc(4, strlen(src) + 1);
if (buf == NULL)
return -1;
len = strvis(buf, src, flag);
serrno = errno;
*outp = realloc(buf, len + 1);
if (*outp == NULL) {
*outp = buf;
errno = serrno;
}
return (len);
}

I am getting #useafterfree warning:

/home/build/repo/compat_vis.c: In function ‘stravis’:
/home/build/repo/compat_vis.c:222:23: warning: pointer ‘buf_15’ may be used after ‘realloc’ [-Wuse-after-free]
222 | *outp = buf;
| ~~~~~~^~~~~
/home/build/repo/compat_vis.c:220:17: note: call to ‘realloc’ here
220 | *outp = realloc(buf, len + 1);
| ^~~~~~~~~~~~~~~~~~~~~

I do not understand why, the code looks correct... What am I missing?

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Axel Stenkil Forsman, Huan Thieu Nguyen, Jinyi Xian, and waffl3x for assigning their copyright to the FSF! #GNU #Emacs #GCC Learn more at https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Axel Stenkil Forsman, Huan Thieu Nguyen, Jinyi Xian, and waffl3x for assigning their copyright to the FSF! #GNU #Emacs #GCC Learn more at https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Axel Stenkil Forsman, Huan Thieu Nguyen, Jinyi Xian, and waffl3x for assigning their copyright to the FSF! #GNU #Emacs #GCC Learn more at https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Axel Stenkil Forsman, Huan Thieu Nguyen, Jinyi Xian, and waffl3x for assigning their copyright to the FSF! #GNU #Emacs #GCC Learn more at https://u.fsf.org/3ht #CopyrightAssignments

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines