Activity for Xfig

  • tkl tkl modified ticket #199

    Signed integer overflow in function `compute_ellarc`

  • tkl tkl posted a comment on ticket #199

    Fixed with commit [6919a3].

  • tkl tkl posted a comment on ticket #200

    The second argument to strchr() is an int, which will be cast to a char. With 67 + 128, the value will be larger than can be held by a signed char (most probably stored correctly, but not defined by the standard). With 67 + '/200' the resulting value depends on the signedness of the char, which, as I read it, is the behaviour as intended by the author.

  • tkl tkl committed [6919a3] on fig2dev

    Replace sqrt(x*x + y*y) by hypot(x, y), ticket #199

  • tkl tkl posted a comment on ticket #199

    Good point, also, hypot() is not used anywhere in the code. I changed the sqrt(..) in a number of places to hypot, but need to check a bit before committing.

  • Marián Konček Marián Konček created ticket #200

    bound.c: invalid value passed to `strchr`

  • Marián Konček Marián Konček created ticket #199

    Signed integer overflow in function `compute_ellarc`

  • tkl tkl posted a comment on discussion General Discussion

    Adding the conversion was quite involved. I currently do not see a possibility to optionally disable that code, although such possibility might exist. Both xfig and the fig2dev backend program have options to tune the behaviour with respect to encoding: Xfig has the -nointernational option, fig2dev has an -E (enc) option to force an input encoding. Can the problems be mitigated with these options?

  • Peter Radisson Peter Radisson posted a comment on discussion General Discussion

    Hello, we use xfig for documentation and the change from latin1 to utf-8 causes some problems. Is it possible to add an option fallback to the old latin1 format ?

  • tkl tkl committed [441008] on fig2dev

    Add feature test macros

  • tkl tkl committed [32007d] on fig2dev

    Avoid compilation warnings

  • tkl tkl modified ticket #197

    README refers to nonexistent Fig.ad

  • tkl tkl posted a comment on ticket #197

    Rererences were corrected and the .ad extension removed, see commit [edd2cd].

  • tkl tkl committed [edd2cd] on xfig

    Remove .ad extension from app-defaults files, #197

  • tkl tkl modified ticket #198

    [Patch] Fix typo in export menu

  • tkl tkl posted a comment on ticket #198

    Thank you, applied with commit [396dff].

  • tkl tkl committed [396dff] on xfig

    Fix typo for GERBER export menu

  • tkl tkl posted a comment on ticket #197

    I think a superior solution is to remove the .ad extension from all files and from the references to those files. I did not find an .ad extension elsewhere.

  • Luc Hondareyte Luc Hondareyte created ticket #198

    [Patch] Fix typo in export menu

  • Ryan Carsten Schmidt Ryan Carsten Schmidt created ticket #197

    README refers to nonexistent Fig.ad

  • tkl tkl modified ticket #196

    Small radius circles not rasterised

  • Hubert M.J. Cantalloube Hubert M.J. Cantalloube posted a comment on ticket #196

    thanks,

  • tkl tkl modified ticket #196

    Small radius circles not rasterised

  • tkl tkl posted a comment on ticket #196

    The behaviour as reported was introduced with commit [c4465e] and affects the development version of fig2dev. In my tests with fig2dev 3.2.9a, all three circles described above rendered correctly. Commit [d8e1ce] now partially reverts the commit mentioned above. This issue reveals a faulty design decision made previously with commit [c4465e]. Luckily, it was discovered quickly. Originally, one of the output backends of fig2dev would have problems with too small circles. Initially it was thought that...

  • tkl tkl committed [4641f0] on fig2dev

    Correct line counting in fig files

  • tkl tkl committed [d8e1ce] on fig2dev

    Allow circles with small radius, ticket #196

  • Hubert M.J. Cantalloube Hubert M.J. Cantalloube created ticket #196

    Small radius circles not rasterised

  • tkl tkl modified ticket #10

    Crash while editing text element

  • tkl tkl posted a comment on ticket #10

    The issue can be avoided with commit [35899d] by applying Athena Translations only to the text widget, not to the scrollbar, Text.translations instead of Text*translations. The issue is also fixed upstreams in libxaw3d.

  • tkl tkl committed [ee3f4d] on fig2dev

    Avoid some compilation warnings

  • tkl tkl modified ticket #187

    SEGV on read_arcobject()

  • tkl tkl posted a comment on ticket #187

    The issue was suppressed with commit [1e5515], and really resolved with [c4465e].

  • tkl tkl modified ticket #192

    stack-overflow on bezier_spline()

  • tkl tkl posted a comment on ticket #192

    Commit [dfa8b6] fixes this issue.

  • tkl tkl modified ticket #190

    SEGV on genge_itp_spline()

  • tkl tkl posted a comment on ticket #190

    Fixed with commit [2bd6c0].

  • tkl tkl modified ticket #191

    stack-buffer-overflow on read_objects()

  • tkl tkl posted a comment on ticket #191

    Fixed with commit [5f2200].

  • tkl tkl modified ticket #195

    heap-buffer-overflow on StrstrCheck()

  • tkl tkl posted a comment on ticket #195

    Fixed with commit [818cc1].

  • tkl tkl committed [dfa8b6] on fig2dev

    Detect nan in spline control values, ticket #192

  • tkl tkl committed [2bd6c0] on fig2dev

    ge output: correct spline computation, ticket #190

  • tkl tkl committed [5f2200] on fig2dev

    Permit \0 in the second line in the fig file, #191

  • tkl tkl committed [818cc1] on fig2dev

    Recognize a text object with an empty string, #195

  • tkl tkl committed [fc52a1] on fig2dev

    Wrap more fprintf() and fputc() into error-reporting functions

  • tkl tkl committed [34c530] on fig2dev

    Replace putc() and fputc() by putc_out()

  • tkl tkl committed [e0a4c5] on fig2dev

    Replace many print_out(fmt) by puts_out(fmt)

  • tkl tkl committed [0edc23] on fig2dev

    Replace fputs(.., tfp) by puts_out(..)

  • tkl tkl committed [b0b3e8] on fig2dev

    Add error handling to fprintf(tfp,..): print_out(..)

  • tkl tkl committed [73c9d3] on fig2dev

    Simplify err_msg()

  • tkl tkl committed [56ca08] on fig2dev

    Rename from and to to fromname and toname

  • GritLilan GritLilan created ticket #195

    heap-buffer-overflow on StrstrCheck()

  • tkl tkl posted a comment on merge request #1

    Yes, I pulled the changes for xfig from the repository given in https://sourceforge.net/p/mcj/fig2dev/merge-requests/1/. I set the status of this merge request to "merged", since it's content is now contained in xfig.

  • tkl tkl updated merge request #1

    Fix prototypes for modern C

  • Mario Haustein Mario Haustein posted a comment on merge request #1

    After rebasing I learnt you already had cherry-picked my commits during February after the discussion in https://sourceforge.net/p/mcj/fig2dev/merge-requests/1/. So this merge request if effectively empty. Sorry for the noise.

  • tkl tkl posted a comment on merge request #1

    Please, first pull the actual state of master on xfig and rebase the branch prototypes on it On the xfig repository, if tried to merge into a temporary branch based on master. This gave plenty of "Auto-merging ..." messages, indicating that the commits do not introduce new changes, and some merge conflicts. git switch master git branch prototypes git pull git://git.code.sf.net/u/hamarituc/xfig prototypes

  • Mario Haustein Mario Haustein created merge request #1 on xfig

    Fix prototypes for modern C

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #184

    CVE-2025-31164

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #186

    CVE-2025-31163

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #185

    CVE-2025-31162

  • tkl tkl committed [ce9782] on xfig

    Use feature test macros

  • tkl tkl committed [17841d] on xfig

    Replace usleep() by nanosleep()

  • tkl tkl committed [9e9352] on xfig

    Wrap random() and srandom() into xf_(s)random()

  • tkl tkl committed [a58dc8] on xfig

    Include a missing header, for M_PI

  • tkl tkl committed [f68687] on xfig

    Remove isascii(), anyhow it was called unnecessarily

  • tkl tkl committed [955949] on xfig

    Avoid intptr_t, it is optional in C

  • tkl tkl committed [470f5c] on xfig

    Reverse thumb movement direction in the color editor

  • tkl tkl committed [04b10e] on xfig

    Remove intptr_t from w_color.c

  • tkl tkl committed [1262c4] on xfig

    Use S_ISDIR() and S_IWUSR instead of S_IFDIR and S_IWRITE

  • tkl tkl committed [b61b55] on xfig

    Refactor make_pulldown_menu_separator()

  • tkl tkl committed [08473d] on xfig

    Split make_pulldown_menu() into two functions

  • tkl tkl committed [20c5fd] on xfig

    Avoid caddr_t - it might become obsolete

  • tkl tkl committed [6b21d5] on xfig

    Avoid gcc -Wcast-function-type warnings

  • tkl tkl committed [0a3289] on xfig

    Let locate_menu() return a valid error-code

  • tkl tkl posted a comment on ticket #194

    Above patch is applied with commit [d9f210]. However, if I compile with gcc -std=c23, compilation still fails with errors, e.g., error: unknown type name 'caddr_t'. Hence, I will keep this ticket open and see, whether all issues regarding c23 can be resolved.

  • tkl tkl committed [d9f210] on xfig

    Change variable names true/false, which conflict in GCC-15 (C23 standard) with predefined keywords.

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #194

    The attached patch should fix the above mentioned problem with true/false variable names. Using this with in combination with current GIT tree allows to compile xfig with GCC 15.

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #194

    I just noticed, that Mario Haustein already fixed the prototypes in GIT. But when I try to build the GIT version with GCC-15, I still run into the following error: main.c:123:17: error: expected identifier or '(' before 'true' 123 | static Boolean true = True; | ^~~~ main.c:124:17: error: expected identifier or '(' before 'false' 124 | static Boolean false = False; | ^~~~~ main.c:198:66: error: lvalue required as unary '&' operand 198 | XtOffset(appresPtr, allownegcoords), XtRBoolean, (caddr_t) &...

  • Roland Rosenfeld Roland Rosenfeld modified ticket #193

    fig2dev: incompatible with GCC 15 C23 standard

  • Roland Rosenfeld Roland Rosenfeld posted a comment on ticket #193

    I just noted, that https://sourceforge.net/p/mcj/fig2dev/ci/ab4eee3cf0d0c1d861d64b9569a5d1497800cae2/ already fixes this issue.

  • tkl tkl committed [1719e6] on xfig

    Remove checks for strndup() as it is not needed

  • tkl tkl committed [e0379d] on xfig

    Fix miscellaneous prototypes

  • tkl tkl committed [d7c367] on xfig

    Fix X callback prototypes

  • tkl tkl committed [92a826] on xfig

    Fix prototypes for manipulation callbacks

  • tkl tkl committed [70f5cd] on xfig

    Fix prototypes for moving callbacks

  • tkl tkl committed [06ee25] on xfig

    Remove obsolete declarations

  • tkl tkl committed [530c92] on xfig

    Fix old style definitions

  • tkl tkl committed [c34a1b] on xfig

    Fix prototypes for keyboard callbacks

  • tkl tkl committed [0913c4] on xfig

    Fix prototypes for mouse button callbacks

  • tkl tkl committed [53c2a0] on xfig

    Report errors when writing .xfigrc file

  • tkl tkl committed [65a61a] on xfig

    Report errors when writing file for spell check

  • tkl tkl committed [a35e83] on xfig

    Declare local functions as static in w_style.c

  • tkl tkl committed [737535] on xfig

    Report failure to write style file

  • tkl tkl committed [240f3a] on xfig

    Detect failure when saving fig-file

  • tkl tkl committed [d65a31] on xfig

    Remove version 4.0 code

  • Roland Rosenfeld Roland Rosenfeld created ticket #194

    xfig: incompatible with GCC 15 C23 standard

  • Roland Rosenfeld Roland Rosenfeld created ticket #193

    fig2dev: incompatible with GCC 15 C23 standard

  • liuchenyifan liuchenyifan created ticket #192

    stack-overflow on bezier_spline()

  • Andrew Paplinski Andrew Paplinski posted a comment on ticket #189

    thanks again :-) Andrew On 11/02/2025 8:57 pm, tkl wrote: Keeping this ticket open, to remember - to add gswin64c to the executables searched for during ./configure - add an environment variable, e.g, FIG2DEV_GS, to give the user the possibility to override the path to ghostscript, - probably contact cygwin to patch their current xfig distribution. [tickets:#189] https://sourceforge.net/p/mcj/tickets/189/ pdf export does not work Status: open Created: Sat Feb 08, 2025 06:41 AM UTC by Andrew Paplinski...

1 >